Main Content

Enable coverage analysis

R2026b

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 and accelerator simulation modes 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 by using the SIL/PIL Manager app, or by setting the mode 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 rapid accelerator simulation mode is not supported. If your model uses rapid accelerator simulation mode, the Enable coverage analysis parameter is ignored.

  • If your model is in accelerator mode, changing the value of the Enable coverage analysis parameter requires rebuilding the accelerator executable target.

Version History

Introduced in R2016a