Messages are used to model communication between Simulink components for the purpose of system integration. You can use messages to establish communication in a composition model whose components perform a defined set of functionalities with I/O boundaries.
Message-based communication between software components is necessary in control system architectures where centralized architectures are replaced by distributed architectures due to system complexity. A message is a useful modeling artifact that combines events with related data. Use message blocks to manage the production, consumption, and storage of messages.
To learn more about Simulink messages, see Simulink Messages Overview.
Overview of the message-based communication for distributed architectures, code generation, and middleware modeling.
Send, receive, visualize, and animate messages and display message data.
Create message send and receive interfaces, and prepare components for C++ code generation.
Specify queue properties for individual model components and compositions.
Route messages using a Message Merge block.
Send and receive virtual buses with message elements carrying nonvirtual bus as data.
Send and receive messages with nonvirtual bus data.
This example shows how to synchronize execution with data availability in message-based systems.
Distributed control of room temperatures by processing messages from room thermostats and communicating control commands using messages to different receivers.
This example shows how to send, receive, and process messages using the MATLAB System block.
Generate C++ Message Interfaces for Lane Following Controls and Sensor Fusion (Automated Driving Toolbox)
Generate code for message-based communication between components of a highway lane following system.
Use FIFO queue, LIFO queue, and priority queue to sort and store messages and define queue policies.
Merge, broadcast, distribute, multicast, and delay messages using SimEvents®.