Create triggers to activate other systems

Trigger actions within your Stateflow® chart or other Simulink® subsystems by using events. Trigger external actions by sending events to other charts in your Simulink model.


Sequence ViewerDisplay messages, events, states, transitions, and functions between blocks during simulation

Stateflow Syntax

expand all

sendBroadcast message or event
temporalCountControl chart execution with the temporalCount operator


Synchronize Model Components by Broadcasting Events

Use events to communicate with Simulink and MATLAB®.

Resolve Undefined Symbols in Your Chart

Detect and add undefined data, events, and messages.

Set Properties for an Event

Specify event properties by using the Property Inspector or the Model Explorer.

Activate a Stateflow Chart by Sending Input Events

Broadcast edge triggers and function calls as input events.

Control States in Charts Enabled by Function-Call Input Events

Set the behavior of states when a function-call input event reenables a chart.

Activate a Simulink Block by Sending Output Events

Broadcast edge triggers and function calls as output events.

Control Function-Call Subsystems by Using bind Actions

Bind a function-call output event to the activity of a state.

Broadcast Local Events to Synchronize Parallel States

Communicate between parallel (AND) states by making directed event broadcasts.

Define Chart Behavior by Using Implicit Events

Trigger chart actions by changes in data values and state activity.

Use the Sequence Viewer Block to Visualize Messages, Events, and Entities

View the interchange of messages, events, and functions through the Sequence Viewer block.

Related Information

Featured Examples