Stateflow |
 |
Defining Data
Stateflow can store and retrieve data that resides internally in its own workspace. It can also access data that resides externally in the Simulink model or application that embeds the Stateflow chart. When creating a Stateflow model, define any internal or external data referenced by Stateflow actions as described in the following topics:
- Adding Data to the Data Dictionary -- Describes how to add a data object to any object in a Stateflow chart, to the chart itself, or to the Stateflow machine.
- Setting Data Properties -- Describes how to change the properties for a data object in Stateflow.
- Defining Data Arrays -- Describes how to specify a data object as an array in its properties dialog.
- Defining Input Data -- Describes how to specify input data that supply data to a chart from Simulink using chart input ports.
- Defining Output Data -- Describes how to specify output data that a Stateflow chart supplies to other blocks in Simulink using chart output ports.
- Associating Ports with Data -- Describes how Stateflow associates the first input port with the first input item you define, the first output port with the first output item, the second input port with the second input item, and so on.
- Defining Temporary Data -- Describes temporary data that you define by setting the data's Scope property to Temporary.
- Exporting Data -- Describes exported data that enables external code and any object in the Stateflow machine to access the data.
- Importing Data -- Describes imported data that allows a chart in the Stateflow machine to import definitions of data defined by external code that embeds the Stateflow machine.
| Implicit Events | | Adding Data to the Data Dictionary |  |