Main Content


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).


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

Stateflow Syntax

expand all

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


Related Information