Main Content

Model Objects That Do Not Receive Coverage

Simulink® Coverage™ does not analyze decision, condition, MCDC, or relational boundary coverage for blocks that are not listed in Model Objects That Receive Coverage.

Note

Simulink Coverage only records model coverage when the Simulation mode parameter is set to Normal. If you have Embedded Coder® installed, Simulink Coverage 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.

This table identifies specific model objects that do not receive coverage in certain conditions.

Model objectDoes not receive coverage...

Logical Operator block

When the Operator parameter specifies XOR or NXOR and there are more than twelve scalar inputs or more than twelve elements in a vector input.

Model block

When the Simulation mode parameter specifies Accelerator or Rapid Accelerator.

Protected model blockCoverage 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 NoReadOrWrite.

Stateflow® chart

MATLAB® Function block

When debugging/animation is not enabled for the model or object.

Additional coverage analysis exceptions include:

  • Virtual blocks do not receive coverage. For more information, see Nonvirtual and Virtual Blocks.

  • MATLAB files that are obfuscated, for example by using the pcode function, do not receive coverage.

Related Topics