Main Content

Enable coverage analysis

Analyze coverage

Model Configuration Pane: Coverage

Description

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:

set_param(gcs,"SimulationMode","software-in-the-loop");

Settings

off (default) | on
on

Collect coverage data during simulation.

off

Do not collect coverage data during simulation.

Programmatic Use

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

Limitations

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

See Also