Stateflow    

Sources for Stateflow Events

Stateflow charts are awakened by Simulink events. From the Stateflow perspective, this is an event like any other event, with the exception that it comes from Simulink. After the chart is made active, it can respond to the occurrence of this event in its action language.

You can also use events to control the processing of your Stateflow diagrams by broadcasting events in the action language associated with states and transitions in the chart itself. For the mechanics of broadcasting events in action language, see Event Broadcasting. For examples using event broadcasting and directed event broadcasting, see the following:

Before you can broadcast events in the action language of a Stateflow chart, you must first add them. You can do this in the Add menu of the Stateflow diagram editor or through the Explorer. Events have hierarchy (a parent) and scope. The parent and scope together define a range of access to events. It is primarily the event's parent that determines who can trigger on the event (has receive rights). See the Name and Parent fields for an event in Setting Event Properties for more information.


  Executing an Event Processing Events