Stateflow | ![]() ![]() |
Action Language
This section introduces you to language included in state and transition labels that executes with the execution of the state or transition. See the following topics:
What Is Action Language?
Action language defines the categories of actions you can specify using the notation of state and transition labels described in the following topics:
Stateflow attaches actions to a state or transition through its label. The actions for states and transitions are divided into different types of action using label notation. Transitions have event triggers, conditions, condition actions, and transition actions. States can have entry
, during
, exit
, and, on
event_name
actions.
Action Language Categories Example
The following diagram shows examples of the different categories of actions for states and transitions:
The actions in action language can be broadcast events, condition statements, function calls, variable assignments and operations, etc. Many are very similar to statements in C or MATLAB. See Action Language, for a description of allowable actions in the action language of Stateflow.
Action Language Notation
Action language for states and transitions is included in the label for state or transition to which the action language applies. See the following topics for detailed information on action language notation:
Action Language Semantics
The rules for interaction between the different Stateflow notations are referred to as Stateflow semantics. See Stateflow Semantics, for a more detailed understanding of Stateflow semantics (behavior).
For the semantics of state action language, see the following topics:
For the semantics of transition action language, see the following topics:
![]() | Graphical Functions | Stateflow Semantics | ![]() |