cvmodelview - Display model coverage results with

                                              model highlighting - MATLAB ([original](https://in.mathworks.com/help/slcoverage/ref/cvmodelview.html)) ([raw](?raw))

Main Content

Display model coverage results with model highlighting

Syntax

Description

cvmodelview([cvdo](#brxo3n9-1-cvdo)) highlights the model with coverage results from the cvdata objectcvdo.

cvmodelview([cvdo](#brxo3n9-1-cvdo),[simMode](#brxo3n9-1-simMode)) highlights the model with coverage results for the specified simulation mode.

example

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.

Input Arguments

collapse all

Coverage data, specified as acvdata object orcv.cvdatagroup object.

Simulation mode, specified as one of these values:

Object Specification Description
"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, selectEnable 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