| Stateflow User's Guide | ![]() |
Simulating a Stateflow Diagram
After you build the Simulink model described in Building an On-Off Control Model, you naturally want to test it. You test Simulink models in a process called simulation. During simulation, Stateflow diagrams generate a graphical display that informs you of the transition that is executing and the currently active state. In this way, you can find out if a Stateflow diagram is behaving the way you expect it to, and make appropriate changes, if required.
Use the following procedure topics to simulate the Controller Stateflow diagram in the SFcontrol1 model:
| Sending a Trigger Event to the Stateflow Chart | Setting Up Diagram Simulation | ![]() |
© 1994-2005 The MathWorks, Inc.