Display model coverage results with model coloring
cvmodelview(cvdo)
cvmodelview(cvdo, simMode)
cvmodelview(cvdo)
displays coverage results
from the cvdata
object cvdo
by
coloring the objects in the model that have model coverage results.
cvmodelview(cvdo, simMode)
displays coverage
results from the cvdata
object cvdo
by
coloring the objects in the model that have model coverage results
for the specified simulation mode.
Open the slvnvdemo_cv_small_controller
example
model, create the test specification object testObj
,
and execute testObj
to collect model coverage.
Run cvmodelview
to color the model objects for
which you collect model coverage information:
mdl = 'slvnvdemo_cv_small_controller'; open_system(mdl) testObj = cvtest(mdl) data = cvsim(testObj) cvmodelview(data)
Use the coverage settings to display model coverage results by coloring objects:
Open the model.
Select Model Settings on the Modeling tab.
On the Coverage pane of the Configuration Parameters dialog box, select Enable coverage analysis.
Click OK to close the Configuration Parameters dialog box and save your changes.
Simulate the model by clicking the Run button and review the results.