Broadcast message or event
send( sends a local or
send( sends a local or output
broadcasts a local event to
state_name and any offspring of that
state in the hierarchy.
broadcasts a local event to its parent state
state_name and any
offspring of that state in the hierarchy.
Send a local or output message
M with a data value of
M.data = 3; send(M);
Broadcast Output Event
Send an output event
Broadcast Directed Local Event
Send a local event
E_one to state
and any of its substates.
Broadcast by Using Qualified Event Name
Send a local event
E_one to its parent state
B and any of its substates.
If a chart sends a message that exceeds the capacity of the receiving queue, a queue overflow occurs. The result of the queue overflow depends on the type of receiving queue.
When an overflow occurs in an internal queue, the Stateflow® chart drops the new message. You can control the level of diagnostic action by setting the Queue Overflow Diagnostic property for the message. See Queue Overflow Diagnostic.
When an overflow occurs in an external queue, the Queue (Simulink) block either drops the new message or overwrites the oldest message in the queue, depending on the configuration of the block. See Overwrite the oldest element if queue is full (Simulink). An overflow in an external queue always results in a warning.
Avoid using undirected local event broadcasts. Undirected local event broadcasts can cause unwanted recursive behavior in your chart. Instead, send local events by using directed broadcasts. For more information, see Broadcast Local Events to Synchronize Parallel States.
sendoperator to send events to the Schedule Editor. The Schedule Editor enables you to schedule the execution of aperiodic partitions. For more information on using the
sendoperator with the Schedule Editor, see Events in Schedule Editor (Simulink).
Introduced before R2006a