| Stateflow User's Guide | ![]() |
Correcting the Run-Time Error
In Debugging the Stateflow Diagram, you step through a simulation of an example Stateflow diagram and find an error: the generation of the event Switch is driving the simulation and the simulation time is passing too quickly for the input data object Shift to have an effect.
Correct this error in the following steps:
Power_on to Power_off is not taken until simulation time is greater than 10.0.
| Debugging the Stateflow Diagram | Debugging State Inconsistencies | ![]() |
© 1994-2005 The MathWorks, Inc.