| Stateflow User's Guide | ![]() |
Example of Action Type Execution
In State Action Types and Transition Action Types, you are introduced to the notation and meaning of the action language types in Stateflow. In this topic, you see how Stateflow action language types interact when you execute the following example Stateflow diagram:
If the Stateflow diagram is turned on, the following takes place:
id = x+y is executed.
time_out is bound to state A.
If state A is active and the Stateflow diagram receives the event event2, the following takes place:
time_out is executed.
data1 = 5 is executed.
If state A is active and the Stateflow diagram receives the event event1, the following takes place:
func1() is executed.
temp > 50 is evaluated. If it is true, do the remaining steps. If it is false, stop here.
time_out is executed.
data1 = 5 is executed.
| Transition Action Types | Using Operations in Actions | ![]() |
© 1994-2005 The MathWorks, Inc.