Main Content

cvmodelview

Display model coverage results with model highlighting

Description

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

example

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

Examples

collapse all

Usecvsimto simulate a model and return acvdataobject.

covData = cvsim(modelName);

Usecvmodelviewwith thecvdataobject to display the coverage results visually by highlighting the model.

cvmodelview(covData)

Input Arguments

collapse all

Coverage data, specified as acvdataobject orcv.cvdatagroupobject.

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 theModelingtab, selectModel Settings.

  3. In theCoveragepane of the Configuration Parameters dialog box, selectEnable coverage analysis.

  4. ClickOK.

  5. Click运行(覆盖率)to simulate the model. When the simulation completes, the model displays with coverage highlighting enabled.

版本History

Introduced in R2006b