getCoverageInfo
Retrieve coverage information for Simulink
Design Verifier blocks from cvdata
object
Syntax
Description
[
collects Simulink®
Design Verifier™ coverage for covInfo
,description
]
= getCoverageInfo(cvdo
,modelObject
)object
, based on coverage results in
cvdo
. object
is a handle to a block,
subsystem, or Stateflow® chart. getCoverageData
returns coverage data only
for Simulink
Design Verifier library blocks in object
's hierarchy.
[
returns coverage data for the block type specified in covInfo
,description
]
= getCoverageInfo(cvdo
,modelObject
,metric
)metric
.
If object
does not match the block type,
getCoverageInfo
does not return data.
[
returns coverage data about covInfo
,description
]
= getCoverageInfo(cvdo
,modelObject
,metric
,ignoreDescendants
)object
, omitting coverage data for
its descendant objects if ignoreDescendants
equals
1
.
Examples
Input Arguments
Output Arguments
Alternatives
Use the coverage settings to collect and display coverage results for Simulink Design Verifier library blocks:
Open the model.
In the Model Editor, select Model Settings on the Modeling tab.
On the Coverage pane of the Configuration Parameters dialog box, select Enable coverage analysis.
Under Coverage metrics, select Objectives and constraints.
Click OK to close the Configuration Parameters dialog box and save your changes.
Simulate the model and review the results.
Version History
Introduced in R2009b
See Also
complexityinfo
| conditioninfo
| cvsim
| decisioninfo
| mcdcinfo
| overflowsaturationinfo
| sigrangeinfo
| sigsizeinfo
| tableinfo
| executioninfo
| relationalboundaryinfo