Relay

This block routes one of the regular inputs to the unique regular output. The choice of which input is to be routed is made initially based on the "initial connected input" parameter. Then, every time the block is activated through an event on its i-th input activation port, the i-th regular input port is routed to the regular output until a subsquent event activates the block.

    Relay

Library

Routing

Description

This block routes one of the regular inputs to the unique regular output. The choice of which input is to be routed is made initially based on the "initial connected input" parameter. Then, every time the block is activated through an event on its i-th input activation port, the i-th regular input port is routed to the regular output until a subsequent event activates the block. In case the block is activated synchronously through more than one input activation ports, the largest numbered port is taken into account, others are ignored. This block only accepts double data type, scalar input.

Parameters

Relay_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Specify the number of input signals to be selected.

Number

z0

Initial connected input

The input initially connected to the output.

Number

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

1

Port 3

activation

input

nin

Advanced Properties

NameValueDescription

always active

yes

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

yes