Extractor
Extract scalar signal out of signal vector dependent on IntegerRealInput index
Library
Modelica/Blocks/Routing
Description
This block extracts a scalar output signal out 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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_nin | nin | Number of inputs | Scalar | |
mo_allowOutOfRange | allowOutOfRange | Index may be out of range | Scalar | true |
mo_outOfRangeValue | outOfRangeValue | Output signal if index is out of range | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of vectors | true | |
mo_u/start | start | Cell of vectors | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars | ||
mo_index | index | index | Structure | |
mo_index/fixed | fixed | Cell of scalars | true | |
mo_index/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signals | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |
index | implicit | input | 2 |