Main Content

Messages

Establish message-based communication between Simulink® model components

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.

Blocks

expand all

SendCreate and send message
ReceiveReceive messages
Hit Crossing ProbeDetect crossing point
Queue, Entity QueueEnqueue messages and entities
Message MergeCombine message paths
Sequence ViewerDisplay messages, events, states, transitions, and functions between blocks during simulation

Tools

expand all

Sequence ViewerVisualize messages, events, states, transitions, and functions

Topics

Understanding Simulink Messages

Simulink Messages Overview

Overview of the message-based communication workflow.

Model Message Send and Receive Interfaces

Animate and Understand Sending and Receiving Messages

This example shows how to send, receive, and visualize messages.

Establish Message Send and Receive Interfaces Between Software Components

This example shows how to model message-based communication between software components that run in different applications.

Merge Message Lines Using a Message Merge Block

This example shows how to use a Message Merge block to route messages.

Use Virtual Buses with Message Elements for Component Communication

This example shows how to model message-based communication between software components that communicate using virtual buses with message elements.

Send and Receive Messages Carrying Bus Data

This example shows how to send and receive messages carrying bus data between model components.

Model a Message Receive Interface that Runs on Message Availability

This example shows how to synchronize execution with data availability in message-based systems.

Message-Based Computation

Temperature Control System Communicating with Messages

This example shows how to use message communication within a distributed system where the controller manages multiple incoming messages from different senders in an iterative manner and sends messages to communicate commands to the different receivers.

Process Message Payload Using MATLAB System Block

This example shows how to send, receive, and process messages using the MATLAB System block.

Simulate Middleware Effects on a Distributed Architecture

Use a Queue Block to Manage Messages

This example shows how to use a Queue block to store and queue messages.

Modeling Message Communication Patterns with SimEvents

This example shows how to create common communication patterns using SimEvents®.