The Simulink® Coverage™ software does not record Decision, Condition, or MCDC coverage for blocks that are not listed in Model Objects That Receive Coverage.
The software only records model coverage when the Simulation
mode parameter is set to
If you have Embedded
Coder® installed, the software can measure
the coverage of code generated from models in SIL or PIL mode. For
more information, seeCode Coverage for Models in Software-in-the-Loop (SIL) Mode and Processor-in-the-Loop (PIL) Mode.
The following table identifies specific model objects that do not receive coverage in certain conditions.
|Model object||Does not receive coverage...|
Logical Operator block
When the Operator parameter specifies
When the Simulation mode parameter
Coverage for Model blocks is the sum of the coverage data for the contents of the referenced model.
When the Read/Write Permissions parameter
is set to
MATLAB Function block
When debugging/animation is not enabled for the model or object.
doc Virtual blocks do not receive model coverage. For more information, see Nonvirtual and Virtual Blocks (Simulink).