This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Message Send

Create and send message

  • Library:
  • SimEvents

Description

The Message Send block reads the input signal and creates and sends a message from this signal. For an example, see Generate Entities When Events Occur.

Ports

Input

expand all

The Message Send block accepts inputs of any type that Simulink® supports, including enumerated types. For more information, see Data Types Supported by Simulink (Simulink).

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | enumerated | bus

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

Output

expand all

The Message Send block outputs a message.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | enumerated | bus

Parameters

expand all

Select this check box to display enable port. For an example, see Enable a Gate for a Time Interval.

Programmatic Use

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

Block Characteristics

Data Types

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

Multidimensional Signals

Yes

Variable-Size Signals

No

Extended Capabilities

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

Introduced in R2016a