Stateflow    

Associating Ports with Data

Stateflow creates and associates an input port with each input data item that you define for a chart and an output port for each output data item. By default, 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. The Data dialog for each item shows its current port assignment in the Port field. You can alter the assignment by editing the value displayed in the Port field or by selecting the data item in the Explorer and dragging it to the desired location in the list of output or input events.


  Defining Output Data Defining Temporary Data