Stateflow | ![]() ![]() |
Outputting Events to Simulink
These tasks describe how to add and define the necessary fields for an event output to Simulink:
Output to Simulink
as the ScopeTrigger
typeAdd an Event Parented by the Chart
These steps describe how to add an event:
Choose Output to Simulink as the Scope
Once you have chosen the chart as the parent, the choice of valid scopes includes Local
, Input from Simulink
, or Output to Simulink
.
Choose Output to Simulink
as the Scope
of the event.
When you define an event to be an Output to Simulink
, a Simulink output port is added to the Stateflow block. Output events from the Stateflow block to the Simulink model are scalar.
Apply the Changes
Click on the Apply button to save the properties. Click on the OK button to save the properties and close the dialog box.
![]() | Inputting Data from Simulink | Outputting Data to Simulink | ![]() |