Using Stateflow     Search    Help Desk 

Event Properties

Stateflow events are defined by their properties. Properties that events can have include:

Event Parent

A property's parent is the object in which it 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").

Event Name

Event names enable Stateflow actions to identify events unambiguously. See "Naming Events" for more information.

Event Scope

An event's scope specifies where an event originates relative to its parent. You can specify the following event scopes:

Local.    A local event is an event that originates 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 type of event originates 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 type of event originates 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.

Event Trigger

Specifies the type of signal that triggers an input or output event. See "Specifying Trigger Types" for more information.

Event Index

This property applies only to input events. It associates an input event with a control signal that can be used to trigger it. See "Associating Input Events with Control Signals" for more information.

Event Port

This property applies only to output events. It associates an output event with a port that outputs a control signal used to trigger the event. See "Associating an Output Event with an Output Port" for more information.

Event Description

This property enables you to store brief descriptions of events in the data dictionary. See "Describing Events" for more information.

Event Documentation

This property allows a model to incorporate links to online documentation for user-defined events. See "Documenting Events" for more information.



[ Previous | Help Desk | Next ]