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 |
IntegerReplicator | Integer signal replicator |
BooleanReplicator | Boolean signal replicator |
ExtractSignal | Extract signals from an input signal vector |
Extractor | Extract scalar signal out of signal vector dependent on IntegerRealInput index |
Multiplex2 | Multiplexer block for two input connectors |
Multiplex3 | Multiplexer block for three input connectors |
Multiplex4 | Multiplexer block for four input connectors |
Multiplex5 | Multiplexer block for five input connectors |
Multiplex6 | Multiplexer block for six input connectors |
DeMultiplex2 | DeMultiplexer block for two output connectors |
DeMultiplex3 | DeMultiplexer block for three output connectors |
DeMultiplex4 | DeMultiplexer block for four output connectors |
DeMultiplex5 | DeMultiplexer block for five output connectors |
DeMultiplex6 | DeMultiplexer block for six output connectors |
RealPassThrough | Pass a Real signal through without modification |
IntegerPassThrough | Pass a Integer signal through without modification |
BooleanPassThrough | Pass a Boolean signal through without modification |
Signal replicator
This block replicates the input signal to an array of nout
identical output signals.
Extends from Modelica.Blocks.Interfaces.SIMO (Single Input Multiple Output continuous control block).
Name | Description |
---|---|
nout | Number of outputs |
Name | Description |
---|---|
u | Connector of Real input signal |
y[nout] | Connector of Real output signals |
Integer signal replicator
This block replicates the Integer input signal to an array of nout
identical Integer output signals.
Extends from Modelica.Blocks.Icons.IntegerBlock (Basic graphical layout of Integer block).
Name | Description |
---|---|
nout | Number of outputs |
Name | Description |
---|---|
u | Connector of Integer input signal |
y[nout] | Connector of Integer output signals |
Boolean signal replicator
This block replicates the Boolean input signal to an array of nout
identical Boolean output signals.
Extends from Modelica.Blocks.Icons.BooleanBlock (Basic graphical layout of Boolean block).
Name | Description |
---|---|
nout | Number of outputs |
Name | Description |
---|---|
u | Connector of Boolean input signal |
y[nout] | Connector of Boolean 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.Blocks.Interfaces.MIMO (Multiple Input Multiple Output continuous control block).
Name | Description |
---|---|
nin | Number of inputs |
nout | Number of outputs |
extract[nout] | Extracting vector |
Name | Description |
---|---|
u[nin] | Connector of Real input signals |
y[nout] | Connector of Real 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.Blocks.Interfaces.MISO (Multiple Input Single Output continuous control block).
Name | Description |
---|---|
nin | Number of inputs |
allowOutOfRange | Index may be out of range |
outOfRangeValue | Output signal if index is out of range |
Name | Description |
---|---|
u[nin] | Connector of Real input signals |
y | Connector of Real output signal |
index |
Multiplexer block for two input connectors
The output connector is the concatenation of the two input connectors. Note, that the dimensions of the input connector signals have to be explicitly defined via parameters n1 and n2.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of input signal connector 1 |
n2 | dimension of input signal connector 2 |
Name | Description |
---|---|
u1[n1] | Connector of Real input signals 1 |
u2[n2] | Connector of Real input signals 2 |
y[n1 + n2] | Connector of Real output signals |
Multiplexer block for three input connectors
The output connector is the concatenation of the three input connectors. Note, that the dimensions of the input connector signals have to be explicitly defined via parameters n1, n2 and n3.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of input signal connector 1 |
n2 | dimension of input signal connector 2 |
n3 | dimension of input signal connector 3 |
Name | Description |
---|---|
u1[n1] | Connector of Real input signals 1 |
u2[n2] | Connector of Real input signals 2 |
u3[n3] | Connector of Real input signals 3 |
y[n1 + n2 + n3] | Connector of Real output signals |
Multiplexer block for four input connectors
The output connector is the concatenation of the four input connectors. Note, that the dimensions of the input connector signals have to be explicitly defined via parameters n1, n2, n3 and n4.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of input signal connector 1 |
n2 | dimension of input signal connector 2 |
n3 | dimension of input signal connector 3 |
n4 | dimension of input signal connector 4 |
Name | Description |
---|---|
u1[n1] | Connector of Real input signals 1 |
u2[n2] | Connector of Real input signals 2 |
u3[n3] | Connector of Real input signals 3 |
u4[n4] | Connector of Real input signals 4 |
y[n1 + n2 + n3 + n4] | Connector of Real output signals |
Multiplexer block for five input connectors
The output connector is the concatenation of the five input connectors. Note, that the dimensions of the input connector signals have to be explicitly defined via parameters n1, n2, n3, n4 and n5.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of input signal connector 1 |
n2 | dimension of input signal connector 2 |
n3 | dimension of input signal connector 3 |
n4 | dimension of input signal connector 4 |
n5 | dimension of input signal connector 5 |
Name | Description |
---|---|
u1[n1] | Connector of Real input signals 1 |
u2[n2] | Connector of Real input signals 2 |
u3[n3] | Connector of Real input signals 3 |
u4[n4] | Connector of Real input signals 4 |
u5[n5] | Connector of Real input signals 5 |
y[n1 + n2 + n3 + n4 + n5] | Connector of Real output signals |
Multiplexer block for six input connectors
The output connector is the concatenation of the six input connectors. Note, that the dimensions of the input connector signals have to be explicitly defined via parameters n1, n2, n3, n4, n5 and n6.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of input signal connector 1 |
n2 | dimension of input signal connector 2 |
n3 | dimension of input signal connector 3 |
n4 | dimension of input signal connector 4 |
n5 | dimension of input signal connector 5 |
n6 | dimension of input signal connector 6 |
Name | Description |
---|---|
u1[n1] | Connector of Real input signals 1 |
u2[n2] | Connector of Real input signals 2 |
u3[n3] | Connector of Real input signals 3 |
u4[n4] | Connector of Real input signals 4 |
u5[n5] | Connector of Real input signals 5 |
u6[n6] | Connector of Real input signals 6 |
y[n1 + n2 + n3 + n4 + n5 + n6] | Connector of Real output signals |
DeMultiplexer block for two output connectors
The input connector is split up into two output connectors. Note, that the dimensions of the output connector signals have to be explicitly defined via parameters n1 and n2.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of output signal connector 1 |
n2 | dimension of output signal connector 2 |
Name | Description |
---|---|
u[n1 + n2] | Connector of Real input signals |
y1[n1] | Connector of Real output signals 1 |
y2[n2] | Connector of Real output signals 2 |
DeMultiplexer block for three output connectors
The input connector is split into three output connectors. Note, that the dimensions of the output connector signals have to be explicitly defined via parameters n1, n2 and n3.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of output signal connector 1 |
n2 | dimension of output signal connector 2 |
n3 | dimension of output signal connector 3 |
Name | Description |
---|---|
u[n1 + n2 + n3] | Connector of Real input signals |
y1[n1] | Connector of Real output signals 1 |
y2[n2] | Connector of Real output signals 2 |
y3[n3] | Connector of Real output signals 3 |
DeMultiplexer block for four output connectors
The input connector is split into four output connectors. Note, that the dimensions of the output connector signals have to be explicitly defined via parameters n1, n2, n3 and n4.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of output signal connector 1 |
n2 | dimension of output signal connector 2 |
n3 | dimension of output signal connector 3 |
n4 | dimension of output signal connector 4 |
Name | Description |
---|---|
u[n1 + n2 + n3 + n4] | Connector of Real input signals |
y1[n1] | Connector of Real output signals 1 |
y2[n2] | Connector of Real output signals 2 |
y3[n3] | Connector of Real output signals 3 |
y4[n4] | Connector of Real output signals 4 |
DeMultiplexer block for five output connectors
The input connector is split into five output connectors. Note, that the dimensions of the output connector signals have to be explicitly defined via parameters n1, n2, n3, n4 and n5.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of output signal connector 1 |
n2 | dimension of output signal connector 2 |
n3 | dimension of output signal connector 3 |
n4 | dimension of output signal connector 4 |
n5 | dimension of output signal connector 5 |
Name | Description |
---|---|
u[n1 + n2 + n3 + n4 + n5] | Connector of Real input signals |
y1[n1] | Connector of Real output signals 1 |
y2[n2] | Connector of Real output signals 2 |
y3[n3] | Connector of Real output signals 3 |
y4[n4] | Connector of Real output signals 4 |
y5[n5] | Connector of Real output signals 5 |
DeMultiplexer block for six output connectors
The input connector is split into six output connectors. Note, that the dimensions of the output connector signals have to be explicitly defined via parameters n1, n2, n3, n4, n5 and n6.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Name | Description |
---|---|
n1 | dimension of output signal connector 1 |
n2 | dimension of output signal connector 2 |
n3 | dimension of output signal connector 3 |
n4 | dimension of output signal connector 4 |
n5 | dimension of output signal connector 5 |
n6 | dimension of output signal connector 6 |
Name | Description |
---|---|
u[n1 + n2 + n3 + n4 + n5 + n6] | Connector of Real input signals |
y1[n1] | Connector of Real output signals 1 |
y2[n2] | Connector of Real output signals 2 |
y3[n3] | Connector of Real output signals 3 |
y4[n4] | Connector of Real output signals 4 |
y5[n5] | Connector of Real output signals 5 |
y6[n6] | Connector of Real output signals 6 |
Pass a Real signal through without modification
Passes a Real 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.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Name | Description |
---|---|
u | Connector of Real input signal |
y | Connector of Real output signal |
Pass a Integer signal through without modification
Passes a Integer 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.Blocks.Icons.IntegerBlock (Basic graphical layout of Integer block).
Name | Description |
---|---|
u | Input signal |
y | Output signal |
Pass a Boolean signal through without modification
Passes a Boolean 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.Blocks.Interfaces.BooleanSISO (Single Input Single Output control block with signals of type Boolean).
Name | Description |
---|---|
u | Connector of Boolean input signal |
y | Connector of Boolean output signal |