Main Content

Reactive Ports

In previous releases, reactive ports are signal input ports that listen for updates or changes in the input signal. When the input signal changes, an appropriate reaction occurs in the block possessing the port. Convert all reactive port event signals to messages.

Here is an example of sending a message when data is less than or equal to 0.

In a Simulink Function block, a Compare to Zero block is connected to Message Send. The Compare to Zero block has operator <=0, and allows messages through if data is less than or equal to zero.

Here is an example of sending messages on trigger edges (rising, falling, or either).

Snapshot of a block diagram showing a Triggered Subsystem with an input signal connecting to the control signal port.

Here is an example of sending messages based on value changes (rising, falling, or either).

Snapshot of a block diagram showing the output of a Relational Operator block connected to the enable port of the Message Send block.

Here is a list of the reactive ports in SimEvents® blocks and the action you can take for them.

List of Reactive Ports

New Block with Reactive PortReactive Port BehaviorAction in New SimEvents Model

Entity Gate

To open a gate on an event

In enabled mode, send a message that carries a positive value to the port on the Entity Gate block.

In receive mode, send a message to advance one entity for each message that arrives on the control port.

Entity Input Switch

Entity Output Switch

Value change

To select a new port, send a message to the control port of the Entity Input Switch or Entity Output Switch.

Entity Generator

Message arrival

Send a message to create an event-based entity.

Return to Migration Workflow

Related Topics