Library of blocks to combine and extract signals
This package contains blocks to combine and extract signals.
Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
Replicator | Signal replicator |
ExtractSignal | Extract signals from an input signal vector |
Extractor | Extract scalar signal out of signal vector dependent on IntegerRealInput index |
ComplexPassThrough | Pass a Complex signal through without modification |
Signal replicator
This block replicates the input signal to an array of nout
identical output signals.
Extends from Modelica.ComplexBlocks.Interfaces.ComplexSIMO (Single Input Multiple Output continuous control block).
Name | Description |
---|---|
nout | Number of outputs |
useConjugateInput | If true, input is processed conjugate complex |
Name | Description |
---|---|
u | Connector of Complex input signal |
y[nout] | Connector of Complex output signals |
Extract signals from an input signal vector
Extract signals from the input connector and transfer them to the output connector.
The extracting scheme is given by the integer vector 'extract'. This vector specifies, which input signals are taken and in which order they are transferred to the output vector. Note, that the dimension of 'extract' has to match the number of outputs. Additionally, the dimensions of the input connector signals and the output connector signals have to be explicitly defined via the parameters 'nin' and 'nout'.
Example:
nin = 7 "Number of inputs"; nout = 4 "Number of outputs"; extract[nout] = {6,3,3,2} "Extracting vector";
extracts four output signals (nout=4) from the seven elements of the input vector (nin=7):
output no. 1 is set equal to input no. 6 output no. 2 is set equal to input no. 3 output no. 3 is set equal to input no. 3 output no. 4 is set equal to input no. 2
Extends from Modelica.ComplexBlocks.Interfaces.ComplexMIMO (Multiple Input Multiple Output continuous control block).
Name | Description |
---|---|
nin | Number of inputs |
nout | Number of outputs |
useConjugateInput[nin] | If true, inputs are processed conjugate complex |
extract[nout] | Extracting vector |
Name | Description |
---|---|
u[nin] | Connector of Complex input signals |
y[nout] | Connector of Complex output signals |
Extract scalar signal out of signal vector dependent on IntegerRealInput index
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.
Extends from Modelica.ComplexBlocks.Interfaces.ComplexMISO (Multiple Input Single Output continuous control block).
Name | Description |
---|---|
nin | Number of inputs |
useConjugateInput[nin] | If true, inputs are processed conjugate complex |
allowOutOfRange | Index may be out of range |
outOfRangeValue | Output signal if index is out of range |
Name | Description |
---|---|
u[nin] | Connector of Complex input signals |
y | Connector of Complex output signal |
index |
Pass a Complex signal through without modification
Passes a Complex signal through without modification. Enables signals to be read out of one bus, have their name changed and be sent back to a bus.
Extends from Modelica.ComplexBlocks.Interfaces.ComplexSISO (Single Input Single Output continuous control block).
Name | Description |
---|---|
useConjugateInput | If true, input is processed conjugate complex |
Name | Description |
---|---|
u | Connector of Complex input signal |
y | Connector of Complex output signal |