Model Objects That Do Not Receive Coverage
The Simulink® Coverage™ software does not record Decision, Condition, or MCDC coverage for blocks that are not listed in Model Objects That Receive Coverage.
Note
The software only records model coverage when the Simulation
mode parameter is set to Normal
. 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, see Code 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 |
Model block | When the Simulation mode parameter
specifies Coverage for Model blocks is the sum of the coverage data for the contents of the referenced model. |
Protected model block | Coverage information is not provided for protected model blocks. See also Model Protection (Simulink Coder). |
Subsystem block | When the Read/Write Permissions parameter
is set to |
Stateflow® chart MATLAB® Function block | When debugging/animation is not enabled for the model or object. |
Virtual Blocks | Virtual blocks do not receive model coverage. For more information, see Nonvirtual and Virtual Blocks. |