| Stateflow User's Guide | ![]() |
Colored Stateflow Diagram Coverage Display
The Model Coverage tool displays model coverage results for individual blocks directly in Simulink diagrams. If you enable this feature, the Model Coverage tool does the following:
For details on enabling and selecting this feature in Simulink, see Enabling the Model Coverage Colored Diagram Display in Simulink documentation.
Displaying Model Coverage with Model Coloring
Once you enable display coverage with model coloring, anytime that the model generates a model coverage report, individual Stateflow objects receiving coverage are highlighted with light green or light red as shown in the following example:
Objects highlighted in light green received full coverage during testing. Objects highlighted in light red received incomplete coverage. Objects with no color highlighting receive no coverage at all.
Along with the highlighted Stateflow diagram, a Coverage Display Window appears, as shown.
If you click a highlighted Stateflow object, its summarized coverage appears in the Coverage Display Window. In the preceding example, the following summary report appears when you click the MultiFail state:
Summary coverage information appears in the Coverage Display Window for the Stateflow object, whose hyperlinked name appears at the top of the window. Click the hyperlink to access the appropriate section of the coverage report for this object.
You can set the Coverage Display Window to appear for a block in response to a hovering mouse cursor instead of a mouse click in one of two ways:
| Coverage Reports for Stateflow Charts | Exploring and Modifying Charts | ![]() |
© 1994-2005 The MathWorks, Inc.