SelectInput
This block selects one of its inputs and copies it into its output, when activated. The block determines the selected port depending on the way by which it has been activated. If the activation is received on its i-th input activation port (the top left port being numbered one), the i-th regular input is copied to the output (top most port being numbered one). In case the block is activated synchronously through more than one input activation ports, the lowest numbered port is taken into account, others are ignored. The block accepts different signal types and sizes but all the inputs must have identical type and compatible sizes (same size as the output or scalar).
Library
Activate/Routing
Description
This block selects one of its inputs and copies it into its output when activated. The block determines the selected port depending on the way by which it has been activated. If the activation is received on its i-th input activation port (the top left port being numbered one), the i-th regular input is copied to the output (top most port being numbered one). In case the block is activated synchronously through more than one input activation ports, the lowest numbered port is taken into account, others are ignored. When the external activation is turned off, this block copies the currently activated input to the output by inheriting activation. The block accepts different signal types and sizes but all the inputs must have identical type and compatible sizes (same size as the output, scalar is expanded to the same size of other matrix input).
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
typ | Input/Output datatype | Specifies the data type of the input and output.Supported types are: double, complex, int32, int16, int8, uint32, uint16, uint8, inherit. | String | 'double' |
nin | Number of inputs | Specify the number of input signals to be selected. | Number | |
externalActivation | External activation | The same number of activation inputs as regular inputs are added to the block when selected. The external activation determines which input to be copied to the output. Default is OFF. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | nin*externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |