This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Forward message





forward(input_message_name,output_message_name) forwards a message from an input queue to an output port, or to and from local message queues. After a chart forwards a message, it can remove another message from the queue in the same time step.


expand all

Checks the input queue for message M_in. If a message is present, the chart removes the message from the queue and forwards it to the output port M_out. After the chart forwards the message, the message is no longer valid.

on M_in: forward(M_in,M_out);

Introduced in R2018b