Stateflow | ![]() ![]() |
Stateflow Data Dictionary of Objects
The Stateflow data dictionary is the internal representation for the hierarchy of all Stateflow objects, graphical and nongraphical, that reside in a Simulink model. It is represented by the following diagram:
Stateflow scoping rules dictate where different nongraphical objects can exist in the hierarchy. For example, data and events can be parented by the machine, the chart (Stateflow diagram), or by a state. Targets can only be parented by the machine. Once a parent is chosen, that object is known in the hierarchy from the parent downward (including the parent's offspring). For example, a data object parented by the machine is accessible by that machine, by any charts within that machine, and by any states within that machine.
The hierarchy of the graphical objects is easily and automatically handled for you by the graphics editor. You manage the hierarchy of nongraphical objects through the Explorer or the graphics editor Add menu. See Stateflow Hierarchy of Objects.
![]() | The Simulink Model and the Stateflow Machine | Defining Stateflow Interfaces to Simulink | ![]() |