| Stateflow | ![]() |
Stateflow Simulates its State Machine
Once you finish a Simulink model with Stateflow charts, you can simulate it. This allows you to see an animated Stateflow chart while it responds to events and changes states. In the animated chart, active states are highlighted as shown in the following example:
When events occur and transitions are taken, they too are highlighted. Continuing with the previous example, the following figures shows what happens when an on_switch event occurs and the value of temp is less than 30:
| Stateflow Adds Flow Diagrams to the State Machine | Stateflow Generates Code | ![]() |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |