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.
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
Name | Label | Description | Data Type | Valid 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
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | nin |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | yes | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | yes |