Main Content

Event Receive

R2026b

Convert input event to signal

  • Event Receive block

Libraries:
AUTOSAR Blockset / Adaptive Platform / Signal Routing

Description

At the top level of an AUTOSAR adaptive model, use the Event Receive and Event Send blocks to set up event-based communication.

  • After each root inport, add an Event Receive block which converts an input event to a signal, while preserving the signal values and data type.

  • Before each root outport, add an Event Send block which converts an input signal to an event, while preserving the signal values and data type.

Event Send blocks do not support row-major code generation.

Ports

Input

expand all

The input port for the Event Receive block to accept an event.

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

Output

expand all

The output port for the Event Receive block to output a signal.

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

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"autosarlibaprouting/Event Receive"

Example: add_block("autosarlibaprouting/Event Receive","myModel/myBlock",MakeNameUnique="on")

Extended Capabilities

expand all

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

Version History

Introduced in R2019a