Skip to Main Content Skip to Search
Product Documentation

Setting Properties for an Event

When to Use the Event Properties Dialog Box

Use the Event properties dialog box when you want to modify properties of an event, which can vary based on the scope of the event. The Event properties dialog box displays only the property fields that apply to the event you are modifying.

For example, the dialog box displays these properties and default values for an event whose scope is Local.

For input events, the dialog box displays these properties and defaults.

Accessing the Event Properties Dialog Box

To access the Event properties dialog box, use one of these methods:

Property Fields

Name

Name of the event. Actions reference events by their names. Names must begin with an alphabetic character, cannot include spaces, and cannot be shared by sibling events.

Scope

Scope of the event. The scope specifies where the event occurs relative to the parent object. For information about types of scope, see Types of Events.

Port

Property that applies to input and output events.

You assign input and output events to ports in the order in which you add the events. For example, you assign the first input event to input port 1 and the third output event to output port 3.

You can change port assignments in the Model Explorer or the Event properties dialog box. When you change the number of one port, the numbers of other ports adjust automatically to preserve the relative order. See Association of Input Events with Control Signals and Association of Output Events with Output Ports.

Trigger

Type of signal that triggers an input or output event. See Using Input Events to Activate a Stateflow Chart or Using Output Events to Activate a Simulink Block.

Debugger Breakpoints

Option for setting debugger breakpoints at the start or end of an event broadcast.

Description

Description of this event. You can enter brief descriptions of events in the hierarchy.

Document Link

Link to online documentation for events in a Stateflow chart. To document a particular event, set the Document Link property to a Web URL address or MATLAB expression that displays documentation in a suitable online format (for example, an HTML file or text in the MATLAB Command Window). When you click the blue Document Link text, the chart evaluates the expression.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS