blockExtractor
Extract scalar signal out of signal vector dependent on IntegerRealInput index
Extends from Modelica.Blocks.Interfaces.MISO (Multiple Input Single Output continuous control block).
Information
This block extracts a scalar output signal out of the vector of input signals dependent on the Integer value of the additional u index:
y = u [ index ] ;
where index is an additional Integer input signal.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nin (from MISO) | 1 | Number of inputs |
| Boolean | allowOutOfRange | false | = true, if index may be out of range |
| Real | outOfRangeValue | 1e10 | Output signal if index is out of range |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput[nin] | u (from MISO) | Connector of Real input signals | |
| RealOutput | y (from MISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.IntegerInput | index |