Stateflow | ![]() ![]() |
Overview
Semantics describe how the notation is interpreted and implemented. A completed Stateflow diagram communicates how the system will behave. A Stateflow diagram contains actions associated with transitions and states. The semantics describe in what sequence these actions take place during Stateflow diagram execution.
Knowledge of the semantics is important to make sound Stateflow diagram design decisions for code generation. Different use of notations results in different ordering of simulation and generated code execution.
Stateflow semantics consist of rules for:
The details of Stateflow semantics are described largely by examples in this chapter. The examples cover a range of various notations and combinations of state and transition actions.
See Semantic Rules Summary for a summary of the semantics.
List of Semantic Examples
This is a list of the semantic examples provided in this chapter.
Transitions to and from Exclusive (OR) States
Condition Actions
Default Transitions
Inner Transitions
Connective Junctions
Event Actions
Parallel (AND) States
Directed Event Broadcasting
![]() | Temporal Logic Events | Event-Driven Effects on Semantics | ![]() |