Main Content

save

Class: slcoverage.Filter
Package: slcoverage

Save coverage filter object to coverage filter file

Syntax

save(filterObj,fileName)

Description

save(filterObj,fileName) saves the specified filter object with the specified file name. The generated file will have the .cvf extension.

Input Arguments

expand all

Coverage filter, specified as an slcoverage.Filter object.

Data Types: slcoverage.Filter

File name, specified as a character array or string array.

Data Types: char | string

Examples

expand all

Create a filter object by using the slcoverage.Filter class, then set the filter name to myCovFilter using setFilterName.

filt = slcoverage.Filter;
setFilterName(filt,'myCovFilter')

Save the filter as myCovFilter.cvf by using save.

save(filt,'myCovFilter')

Alternatives

You can also create and save filters in Simulink®. See Create, Edit, and View Coverage Filter Rules for more information.

Introduced in R2020a