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 creates a message that sends the value to the block connected to its output port. In effect, the Send block converts the input signal to a message. In message-based communication, a message is a discrete item that carries data of any type that Simulink® supports.  For more information about messages, see Simulink Messages Overview.

The Send block has an input port to receive a signal and an optional input port to receive an enable signal. If you do not enable the optional port, the Send block inherits the sample time of the input signal. If you enable the optional port, the Send block executes when this port receives an enable signal with a value greater than 0.

The Send and Message Send blocks are identical blocks.

Examples

Ports

Input

expand all

Input port that accepts a signal of any type that Simulink supports, including enumerated types. For more information, see Data Types Supported by Simulink. The block converts this input signal to a message.

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

Optional input port to receive an enable signal. The Send block converts the input signal to a message when the enable signal has a value greater than 0.

Dependencies

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

Data Types: double

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

expand all

Version History

Introduced in R2016a

See Also

(SimEvents)