Stateflow User's Guide Previous page   Next Page

Debugging and Testing


To ensure that your Stateflow diagrams are behaving as you expect them to, use the Stateflow Debugging window to evaluate code coverage and perform dynamic checking during simulation.
Debugging with the Debugging Window
Describes the parts of the Stateflow Debugging window during debugging.
Debugging Run-Time Errors Example
Shows you how to debug run-time errors in Stateflow diagrams with an actual example model.
Debugging State Inconsistencies
Describes how state inconsistencies due to faulty Stateflow notation are detected and debugged.
Debugging Conflicting Transitions
Describes how conflicting transitions, transitions that are equally valid during execution, are detected and debugged.
Debugging Data Range Violations
Describes how to debug for occurrences of the value of a data object exceeding its maximum value or dropping below its minimum value.
Debugging Cyclic Behavior
Shows you how the Stateflow Debugging window detects algorithms that lead to infinite recursions and looping caused by event broadcasts.
Watching Data Values with Debuggers
Shows you a variety of ways that you can keep track of the values for Stateflow data and state activity during simulation.
Monitoring Stateflow Test Points
Shows you how to specify local data or states as test points that you can plot with a floating scope or log to MATLAB workspace during simulation.
Understanding Model Coverage for Stateflow Charts
Describes how the Model Coverage tool determines the extent to which a model test case exercises simulation control flow paths through a model.


Previous page  Makefiles Debugging with the Debugging Window Next page

© 1994-2005 The MathWorks, Inc.