Stateflow |
 |
Defining Events
An event is a Stateflow object that triggers actions in a Stateflow machine or its environment. Stateflow defines a set of events that typically occur whenever a Stateflow machine executes (see Implicit Events). You can define other types of events that occur only during execution of a specific Stateflow machine or its environment.
This section contains the following topics:
- Adding Events to the Data Dictionary -- Tells you how to add events at any hierarchical object level within the Stateflow machine.
- Setting Event Properties -- Describes how to change the properties of an event in Stateflow.
- Defining Local Events -- Describes local events that are visible only to its parent object (for example, a state) and its children.
- Defining Input Events -- Describes input events that allow other Simulink blocks, including other Stateflow blocks, to notify a particular chart of events that occur outside it.
- Defining Output Events -- Describes output events that allow a chart to notify other blocks in a model of occurrences in that chart.
- Exporting Events -- Describes how to export events that enable external code to trigger events in the Stateflow machine.
- Importing Events -- Describes how to import events that allow a Stateflow machine built into a stand-alone or Real-Time Workshop target to trigger an event in external code.
- Specifying Trigger Types -- Describes the trigger type for a chart that defines how control signals trigger input and output events associated with the chart.
- Implicit Events -- Describes events that Stateflow triggers implicitly for actions such as entry in or exit from a state.
| Defining Events and Data | | Adding Events to the Data Dictionary |  |