Merge Message Lines for Architectures Using Adapter Block
This example shows how to use an Adapter block to merge multiple message lines in a System Composer™ architecture model.
Open the model.
In this model, message-based communication is constructed between three software components: two send components,
SAC2, create messages and send them to a receive component,
SAC1component linked to the Simulink® behavior model
mBottomupMsg1generates messages with value
SAC2component linked to the Simulink behavior model
mBottomupMsg2generates messages with value
SAC3component linked to the Simulink behavior model
mBottomupMsg3receives the merged messages using a rate-based Subsystem block with a
A first-in, first-out (FIFO) queue is used as a message buffer between the components.
Simulate the model to merge the messages from the send components
SAC2 produced by Simulink behaviors into a single destination, the receive component
Launch the Simulation Data Inspector to view the three messages together on the same diagram.