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 thevector of input signals dependent on the Integervalue 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__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | 'k' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
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 |