Store Simulink Coverage data for use in other coverage functions
cvdata
objects store model coverage data. A cvdata
object is
generated automatically when you simulate a model that has coverage enabled. The coverage data
can be accessed by other coverage functions. The cvdata
object becomes
invalid if its parent model is closed or modified.
dbVersion
— Coverage data origin releasecharacter array
This property is read-only.
Coverage data origin release, returned as a character array.
Data Types: char
id
— Internal coverage data IDscalar
This property is read-only.
Internal coverage data ID, returned as a scalar.
Data Types: double
type
— Internal coverage data typeTEST_DATA
| DERIVED_DATA
This property is read-only.
Internal coverage type, returned as either TEST_DATA
for a single
coverage simulation, or DERIVED_DATA
for aggregated or cumulative
coverage data.
Data Types: char
test
— Test datacvtest
objectThis property is read-only.
Test data, returned as a cvtest
object. This property describes the
coverage configuration.
Data Types: cvtest
rootID
— Internal root IDscalar
This property is read-only.
Internal root ID, returned as a scalar.
Data Types: double
checksum
— Coverage data checksumstruct
This property is read-only.
Coverage data checksum, returned as a struct. The checksum is based on the structure
of the model being analyzed. It can be used to determine if two cvdata
objects would be compatible for data aggregation.
Data Types: struct
modelinfo
— Model informationstruct
This property is read-only.
Model information, returned as a struct. This property contains metadata about the model analyzed for coverage.
cvdata.modelinfo
has the following fields:
Field | Description | Values |
---|---|---|
| Version of the model analyzed for coverage. |
|
| Original creator of the model. | System name or organization name |
| Date and time the model was last modified. |
|
| Indicates the default parameter behavior setting. |
|
| Indicates whether Block Reduction is enabled. See Block Reduction for more information. |
|
| Conditional input execution switch. A value of |
|
| Definition used for modified condition decision coverage (MCDC)
analysis. A value of For more information, see Modified Condition and Decision Coverage (MCDC) Definitions in Simulink Coverage. |
|
| Name of the analyzed model or model object. If analysis is scoped to a subsystem, Stateflow® Chart, or other model object, this is the path to that model object. |
|
| List of blocks reduced by the block reduction parameter, if it is enabled and any blocks are reduced. |
|
| Model that is or contains the component under test. If you have a block diagram harness, this is the model that the harness tests. If you have a subsystem harness, this is the model that contains that subsystem. | character array |
| If the model includes a subsystem harness, this is the subsystem that the harness is testing. |
|
| Harness model name. If you have data aggregated from multiple test
runs, where each run used a different harness with the same
| character array |
| Indicates whether the short-circuiting option is enabled. |
|
Data Types: struct
startTime
— System time at simulation startcharacter array
System time at simulation start, returned as a character array.
Data Types: char
stopTime
— System time at simulation stopscalar
System time at simulation stop, returned as a character array.
Data Types: char
intervalStartTime
— Coverage interval start timescalar
Coverage interval start time, returned as a scalar. This value comes from the
CovStartTime
parameter. For more information, see Coverage interval start time.
Data Types: double
intervalStopTime
— Coverage interval start timescalar
Coverage interval stop time, returned as a scalar. This value comes from the
CovStopTime
parameter. For more information, see Coverage interval stop time.
Data Types: double
metrics
— Coverage metric datastruct
Coverage metric data, returned as a struct.
This parameter is for internal use only. Access the coverage data for specific
coverage metrics by using one of the Simulink®
Coverage™ information functions. See Retrieve Coverage Details from Results for more information. You can also access the coverage data by using cvhtml
.
Data Types: struct
filter
— Coverage filter file namecharacter array
| cell array
Coverage filter file name, returned as a character array or a cell array of character arrays. This property contains the coverage filter file name. If there is no coverage filter, this field is empty. You can apply a coverage filter after simulation by assigning the name of a valid filter file to this property.
Data Types: char
| cell
simMode
— Simulation modecharacter array
Simulation mode, returned as a character array. For more information, see Simulation mode.
Data Types: char