Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

cvmodelview

Display model coverage results with model coloring

Syntax

cvmodelview(cvdo)
cvmodelview(cvdo, simMode)

Description

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.

Input Arguments

collapse all

cv.cvdatagroup object.

Simulation modes associated with the models. Valid values include the following:

Object SpecificationDescription

'Normal'

Model in Normal simulation mode.

'SIL' (or 'PIL')

Model in Software-in-the-Loop (SIL) or Processor-in-the-Loop (PIL) simulation mode.

'ModelRefSIL' (or 'ModelRefPIL')

Model reference in Software-in-the-Loop (SIL) or Processor-in-the-Loop (PIL) simulation mode.

'ModelRefTopSIL' (or 'ModelRefTopPIL')

Model reference in Software-in-the-Loop (SIL or Processor-in-the-Loop (PIL) simulation mode with code interface set to top model.

Examples

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)

Alternatives

Use the coverage settings to display model coverage results by coloring objects:

  1. Open the model.

  2. Select Analysis > Coverage > Settings.

  3. On the Coverage pane of the Configuration Parameters dialog box, select Enable coverage analysis.

  4. On the Coverage > Results pane, select Display coverage results using model coloring.

  5. Click OK to close the Configuration Parameters dialog box and save your changes.

  6. Simulate the model and review the results.

Introduced in R2006b

Was this topic helpful?