| Stateflow User's Guide | ![]() |
Simulating Parallel States
In Creating Parallel States, you create parallel states, that each have their own Stateflow diagram. Observe the behavior of each parallel state during simulation of the Stateflow diagram in the model SFcontrol8 in the following steps.
Parallel state FAN2 becomes active followed by its default substate Off.
FAN2 substate On becomes active because FAN1 substate On is active and the temperature is greater than 120.
FAN2 substate Off becomes active because FAN1 substate Off is active.
| Creating Parallel States | Stateflow in Simulink | ![]() |
© 1994-2005 The MathWorks, Inc.