User`s guide

View Coverage Results in a Model
18-5
Enable Coverage Highlighting
To enable the model coverage colored diagram display:
1
In the Simulink Editor, select Analysis > Coverage > Settings to open the
Coverage Settings dialog box.
2
In the Coverage tab, select Coverage for this model. Click Select Subsystem
to open the Subsystem Selection dialog box. Select the top-level model
sldemo_fuelsys so that all subsystems are included in coverage analysis. Close the
Subsystem Selection dialog box.
3
In the Coverage Settings dialog box, under the Coverage metrics pane, select
Decision, Condition, MCDC, and Simulink Design Verifier.
4
Select the Results tab.
5
Select Display coverage results using model coloring. This is the default
setting.
After you have enabled the coverage coloring, simulate your model. In the model, you can
see at a glance which objects received full, partial, or no coverage.
Highlighted Coverage Results
The following sections show examples of highlighted model objects in colors that
correspond to the recorded coverage.
“Green: Full Coverage” on page 18-5
“Red: Partial Coverage” on page 18-6
“Gray: Filtered Coverage” on page 18-8
Green: Full Coverage
In this example, the Switch block received 100% coverage, as indicated by the green
highlighting and the information in the Coverage Display Window.