Main Content

Enable coverage analysis

Analyze coverage

Model Configuration Pane: Coverage


The Enable coverage analysis parameter enables coverage analysis on the model. Select this parameter to collect model coverage for models in normal simulation mode and code coverage for models in software-in-the-loop (SIL) and processor-in-the-loop (PIL) simulation modes. You can set the simulation mode to SIL or PIL mode by using the SIL/PIL Manager app, or programmatically:



off (default) | on

Collect coverage data during simulation.


Do not collect coverage data during simulation.

Programmatic Use

Parameter: CovEnable
Type: character vector | string
Value: "on" | "off"
Default: "off"


Collecting model coverage for models in accelerator or rapid accelerator simulation modes is not supported. If your model uses one of these simulation modes, the Enable coverage analysis parameter is ignored.

Version History

Introduced in R2016a