Main Content

Send

Create and send message

  • Send block

Libraries:
Simulink / Messages & Events
SimEvents

Alternative Configurations of Send Block:
Message Send

Description

The Send block reads the value of an input signal, and sends a message that carries this value. In message-based communication, a message is a discrete-item of interest that carry data of any type that Simulink supports. Send and Message Send blocks are identical blocks.

Ports

Input

expand all

Input port to enable the block to send a message. For any input value that is greater than 0 send is enabled. For any value less than or equal to 0, the send is disabled.

Dependencies

To enable this port, select the box labeled Show enable port.

Data Types: double

This block accepts inputs of any type that Simulink® supports, including enumerated types and converts the input signal to a message. For more information, see Data Types Supported by Simulink.

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

Output

expand all

The block outputs a message with constant priority 20.

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

Parameters

expand all

Select this check box to display enable port. For any input value that is greater than 0 send is enabled. For any value less than or equal to 0, the send is disabled.

Programmatic Use

Block Parameter: ShowEnablePort
Type: character vector
Values: 'on' | 'off'
Default: 'off'

Block Characteristics

Data Types

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

Direct Feedthrough

no

Multidimensional Signals

yes

Variable-Size Signals

no

Zero-Crossing Detection

no

Alternative Configurations

expand all

The Message Send block differs from the Send block in name only.

Libraries:
Simulink / Messages & Events
SimEvents

Extended Capabilities

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

Version History

Introduced in R2016a

See Also

(SimEvents)