send
Broadcast message or event
Syntax
Description
send(
sends a local or
output message.message_name
)
send(
sends a local or output
event.event_name
)
send(
broadcasts a local event to local_event_name
,state_name
)state_name
and any offspring of that
state in the hierarchy.
send(
broadcasts a local event to its parent state state_name
.local_event_name
)state_name
and any
offspring of that state in the hierarchy.
Examples
Tips
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.
Use the
send
operator to send events to the Schedule Editor. The Schedule Editor enables you to schedule the execution of aperiodic partitions. For more information on using thesend
operator with the Schedule Editor, see Events in Schedule Editor (Simulink).
Version History
Introduced before R2006a