Multiplexer
This function block sets a selected element from the input vector INP to the output OUT.
The input N determines the selected index (starting with 0). If N indicates beyond the last element of the vector, the last element is given to the output. If N is less than 0, the first element is given to the output.
Parameters
The parameter dialog can be used to select a data type.
Signals
Name | I/O | Type(s) | Function |
---|---|---|---|
INP | I | BYTE, UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE | Input vector |
N | I | WORD | Index |
OUT | O | BYTE, UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE | Output value |
Comments
If no connection exists, another data type can be assigned by creating a new connection.
If the data type is changed by the parameter dialog, all invalid connections will be deleted.