Stateflow    

Event Dialog Box

The Event dialog box allows you to specify event properties.

The dialog box displays the following fields and options.

Name

Name of this event. The name allows you to specify this event in Stateflow actions. See Naming Events for more information.

Parent

Clicking on this field displays the parent of this event in the Stateflow editor. The parent is the object in which this event is visible. When an event is triggered, Stateflow broadcasts the event to the parent and all the parent's descendants. An event's parent can be a state machine, a chart, or a state. You specify an event's parent when you add it to the data dictionary (see Adding Events to the Data Dictionary).

Scope

Scope of this event. The scope specifies where the event occurs relative to its parent. You can specify the following scopes:

Local.   This event occurs in a state machine and is parented by the state machine or one of its charts or states. See Defining Local Events for more information.

Input from Simulink.   This event occurs in one Simulink block and is broadcast in another. The first block may be any type of Simulink block. The second block must be a chart block. See Defining Input Events for more information.

Output to Simulink.   This event occurs in one Simulink block and is broadcast in another. The first block is a chart block. The second block may be any type of Simulink block. See Defining Output Events for more information.

Exported.   An exported event is a Stateflow event that can be broadcast by external code built into a stand-alone or Real-time Workshop target. See Exporting Events for more information.

Imported.   An imported event is an externally defined event that can be broadcast by a state machine embedded in the external code. See Importing Events for more information.

Trigger

Type of signal that triggers an input or output event. See Specifying Trigger Types for more information.

Index

Index of the input signal that triggers this event. This option applies only to input events and appears when you select Input from Simulink as the scope of this event. See Associating Input Events with Control Signals for more information.

Port

Index of port that outputs this event. This property applies only to output events and appears when you select Output to Simulink as the scope of this event. See Associating an Output Event with an Output Port for more information.

Description

Description of this event. Stateflow stores the contents of this field in the data dictionary. See Describing Events for more information.

Document Link

Clicking this field displays online documentation for this event. See Documenting Events for more information.


 Changing Event Properties Naming Events