Main Content

cvmodelview

Display model coverage results with model highlighting

Description

cvmodelview(cvdo) highlights the model with coverage results from the cvdata object cvdo.

example

cvmodelview(cvdo,simMode) highlights the model with coverage results for the specified simulation mode.

Examples

collapse all

Use cvsim to simulate a model and return a cvdata object.

covData = cvsim(modelName);

Use cvmodelview with the cvdata object to display the coverage results visually by highlighting the model.

cvmodelview(covData)

Input Arguments

collapse all

Coverage data, specified as a cvdata object or cv.cvdatagroup object.

Simulation mode, specified as one of these values:

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 SIL or PIL simulation mode

"ModelRefTopSIL" (or "ModelRefTopPIL")

Model reference in SIL or PIL simulation mode with code interface set to top model

Alternatives

Use the coverage settings to enable coverage highlighting:

  1. Open the model.

  2. On the Modeling tab, select Model Settings.

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

  4. Click OK.

  5. Click Run (Coverage) to simulate the model. When the simulation completes, the model displays with coverage highlighting enabled.

Version History

Introduced in R2006b