User`s guide
Filter Model Objects to Refine Coverage Results
20-21
Exclude the Switchable config subsystem from coverage.
1
In the Simulink Editor, right-click the Switchable config subsystem.
2
Select Coverage > Exclude subsystem with all descendants.
3
Click in the Rationale field for this new rule and enter text for excluding this
transition, for example, Never executed.
4
Save this rule to the current filter. Click Apply.
5
Simulate the model again and review the results.
The Filtered Blocks section of the report lists the Switchable config subsystem. No
coverage is recorded for the subsystem.
Filter a Specific Block
In the slvnvdemo_covfilt model, the rate signal can never be less than or equal to 0,
which is the value of the Lower limit parameter of the Saturation block. This condition
leads to missing coverage.
Exclude the Saturation block from coverage.
1
In the Simulink Editor, right-click the Saturation block.
2
Select Coverage > Exclude this block.
3
Click in the Rationale field for this new rule and enter text for excluding this
transition, for example, Input never <= lower limit (0).
4
Save this rule to the current filter. Click Apply.
5
Simulate the model again and review the results.
The Filtered Blocks section of the report lists the Saturation block. Coverage for
that block is omitted from the report.