| Stateflow User's Guide |
 |
Stateflow Diagram Objects
Stateflow diagrams are made of objects. Some of these objects graphical, that is, you draw them in a Stateflow diagram. Some of these objects are nongraphical, that is, they do not have a graphical appearance, but are referred to in the Stateflow diagram.
The following sample Stateflow diagram displays some of the key graphical objects of a Stateflow diagram.
Stateflow Diagram of Graphical Objects

This section introduces you to the graphical and nongraphical objects in a Stateflow diagram in the following topics:
- States -- Describes the role of states in a Stateflow diagram that represent the current mode of an executing diagram.
- Transitions -- Describes the role of a transitions in a Stateflow diagram that provide a path for an executing diagram to change from one mode (state) to another.
- Default Transitions -- Describes the role of a default transition that specifies which exclusive (OR) state in an executing diagram is active on startup.
- Events -- Describes the role of events that drive Stateflow diagram execution.
- Data -- Describes the role of data that serves as variables in a Stateflow diagram.
- Conditions -- Describes the conditions that, along with events, drive Stateflow diagram execution.
- History Junction -- Describes the role of history junctions that record the most recently active substate of a chart or superstate.
- Actions -- Describes the role of actions that take place as part of Stateflow diagram execution.
- Connective Junctions -- Describes the role of connective junctions that provide decision points for transitions taking place during diagram execution.
All Stateflow objects are arranged in a hierarchy of objects. See Stateflow Hierarchy of Objects.
| Defining Stateflow Interfaces to Simulink | | States |  |
© 1994-2005 The MathWorks, Inc.