Stateflow    

Defining Output Data

Output data is data that a chart supplies to other blocks via its output ports. To define an item of output data, add a default data item to the data dictionary as a child of the chart that supplies the item. Then, set the new item's Scope property to Output to Simulink. Stateflow adds an output port to the chart for each item that it outputs.

You can set an output item's type to any supported Stateflow data type. You can set the size of the input data to be scalar, vector, or two-dimensional array (see Defining Data Arrays). If the chart's strong data typing option is enabled (see Specifying Chart Properties), the chart outputs a Simulink signal of the same data type as the output data item's type. If the option is not enabled, the Stateflow Chart block converts the output data to Simulink type double.


  Defining Input Data Associating Ports with Data