| Using Simulink | ![]() |
How the Model Coverage Tool Works
The Model Coverage Tool works by analyzing the execution of blocks that serve as decision points in your model. The block types that represent decision points include
If a model includes Stateflow charts, the tool also analyzes the states and transitions of those charts. During a simulation run, the tool records changes of state of the branch blocks and of states and transitions. At the end of the simulation, the tool computes for each decision point block and for each state and transition, the ratio of actual branches versus potential branches.
Using the Model Coverage Tool
To develop effective tests with the Model Coverage Tool,
Note
Simulink comes with an online demonstration of the use of the Model Coverage Tool to validate model tests. To run the demo, type simcovdemo at the MATLAB command prompt.
|
| Model Coverage Tool | Creating and Running Test Cases | ![]() |