Products & Services Solutions Academia Support User Community Company

Learn more about Stateflow   

Debugging Data Range Violations in a Chart

Types of Data Range Violations

Stateflow software detects the following data range violations during simulation:

Detecting Data Range Violations

To detect data range violations during a simulation:

  1. Build the target with debugging enabled.

  2. Invoke the Debugger and select Data Range.

  3. Start the simulation.

Data Range Violation Example

The following chart has a data range violation.

Assume that the data a has an Initial and Minimum value of 0 and a Maximum value of 2. Each time an event awakens this chart and state A is active, a increments. The value of a quickly becomes a data range violation.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS