Main Content

Message Merge

Combine message paths

  • Library:
  • Simulink / Message

  • Message Merge block

Description

The Message Merge block is a virtual block that graphically combines multiple message lines into a single message line. Merging message lines does not change the messages themselves. You can specify the number of message lines to merge.

Use this block when you want to merge multiple incoming messages and output to a single destination such as a queue or message a storage block.

Ports

Input

expand all

Input message port for messages entering the block.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point

Input message port for messages entering the block.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point

Output

expand all

Output message port for messages exiting the block.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point

Parameters

expand all

Determines the number of message input ports to be combined.

Programmatic Use

Block Parameter: NumberInputPorts
Type: character vector
Values: '2' | scalar
Default: '2'

Block Characteristics

Data Types

Boolean | bus | double | enumerated | fixed point | integer | single

Direct Feedthrough

no

Multidimensional Signals

yes

Variable-Size Signals

no

Zero-Crossing Detection

yes

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2021a