Main Content

Messages

Send messages to pass data between charts

Send, receive, and forward messages that carry data to communicate between Stateflow® charts and other Simulink® and SimEvents® components. Unlike events, messages are queued until the receiving component can process them. For more information about using messages in Simulink, see Simulink Messages Overview (Simulink).

Blocks

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

Stateflow Syntax

expand all

discardDiscard message
forwardForward message
isvalidDetermine if message is valid
lengthDetermine length of message queue
receiveExtract message from queue
sendBroadcast message or event

Topics

Related Information