Event Semantics

Synchronize chart and state execution by using events

Control your Stateflow® chart independently of the Simulink® time step by using events.


How Events Drive Chart Execution

An overview of chart response to event broadcasts.

Process Events in States Containing Inner Transitions

No state exit and entry actions are executed when inner transitions occur.

Control Chart Execution by Using Event Actions in a Superstate

Charts execute actions in a superstate before actions in a substate.

Broadcast Local Events in Parallel States

Use the send operator for directed event broadcasts.

Early Return Logic for Event Broadcasts

Interrupt the typical execution behavior of a Stateflow chart.

Count Events by Using the temporalCount Operator

Count occurrences of explicit and implicit events.

View Differences Between Stateflow Messages, Events, and Data

Compare the behavior of messages, events, and data in Stateflow charts.

Featured Examples