Package Modelica.Blocks.Routing
This package contains blocks to combine and extract signals.
Extends from Modelica.Icons.Package (Icon for standard packages).
| Name | Description |
|---|---|
BooleanPassThrough | Pass a Boolean signal through without modification |
BooleanReplicator | Boolean signal replicator |
DeMultiplex | DeMultiplexer block for arbitrary number of output 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 |
Extractor | Extract scalar signal out of signal vector dependent on IntegerRealInput index |
ExtractSignal | Extract signals from an input signal vector |
IntegerPassThrough | Pass a Integer signal through without modification |
IntegerReplicator | Integer signal replicator |
Multiplex | Multiplexer block for arbitrary number of input connectors |
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 |
RealPassThrough | Pass a Real signal through without modification |
Replicator | Signal replicator |
Block Modelica.Blocks.Routing.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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | nout | 1 | Number of outputs |
| Type | Name | Description |
|---|---|---|
input RealInput | u | Connector of Real input signal |
output RealOutput | y[nout] | Connector of Real output signals |
Block Modelica.Blocks.Routing.IntegerReplicator
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | nout | 1 | Number of outputs |
| Type | Name | Description |
|---|---|---|
input IntegerInput | u | Connector of Integer input signal |
output IntegerOutput | y[nout] | Connector of Integer output signals |
Block Modelica.Blocks.Routing.BooleanReplicator
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | nout | 1 | Number of outputs |
| Type | Name | Description |
|---|---|---|
input BooleanInput | u | Connector of Boolean input signal |
output BooleanOutput | y[nout] | Connector of Boolean output signals |
Block Modelica.Blocks.Routing.ExtractSignal
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | nin | 1 | Number of inputs |
Integer | nout | 1 | Number of outputs |
Integer | extract[nout] | 1:nout | Extracting vector |
| Type | Name | Description |
|---|---|---|
input RealInput | u[nin] | Connector of Real input signals |
output RealOutput | y[nout] | Connector of Real output signals |
Block Modelica.Blocks.Routing.Extractor
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | nin | 1 | Number of inputs |
Boolean | allowOutOfRange | false | Index may be out of range |
Real | outOfRangeValue | 1e+10 | Output signal if index is out of range |
| Type | Name | Description |
|---|---|---|
input RealInput | u[nin] | Connector of Real input signals |
output RealOutput | y | Connector of Real output signal |
input IntegerInput | index |   |
Block Modelica.Blocks.Routing.Multiplex
The output connector is the concatenation of the input connectors.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n | 0 | Dimension of input signal connector |
| Type | Name | Description |
|---|---|---|
input RealVectorInput | u[n] | Connector of Real input signals |
output RealOutput | y[n + 0] | Connector of Real output signals |
Block Modelica.Blocks.Routing.Multiplex2
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of input signal connector 1 |
Integer | n2 | 1 | Dimension of input signal connector 2 |
| Type | Name | Description |
|---|---|---|
input RealInput | u1[n1] | Connector of Real input signals 1 |
input RealInput | u2[n2] | Connector of Real input signals 2 |
output RealOutput | y[n1 + n2] | Connector of Real output signals |
Block Modelica.Blocks.Routing.Multiplex3
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of input signal connector 1 |
Integer | n2 | 1 | Dimension of input signal connector 2 |
Integer | n3 | 1 | Dimension of input signal connector 3 |
| Type | Name | Description |
|---|---|---|
input RealInput | u1[n1] | Connector of Real input signals 1 |
input RealInput | u2[n2] | Connector of Real input signals 2 |
input RealInput | u3[n3] | Connector of Real input signals 3 |
output RealOutput | y[n1 + n2 + n3] | Connector of Real output signals |
Block Modelica.Blocks.Routing.Multiplex4
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of input signal connector 1 |
Integer | n2 | 1 | Dimension of input signal connector 2 |
Integer | n3 | 1 | Dimension of input signal connector 3 |
Integer | n4 | 1 | Dimension of input signal connector 4 |
| Type | Name | Description |
|---|---|---|
input RealInput | u1[n1] | Connector of Real input signals 1 |
input RealInput | u2[n2] | Connector of Real input signals 2 |
input RealInput | u3[n3] | Connector of Real input signals 3 |
input RealInput | u4[n4] | Connector of Real input signals 4 |
output RealOutput | y[n1 + n2 + n3 + n4] | Connector of Real output signals |
Block Modelica.Blocks.Routing.Multiplex5
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of input signal connector 1 |
Integer | n2 | 1 | Dimension of input signal connector 2 |
Integer | n3 | 1 | Dimension of input signal connector 3 |
Integer | n4 | 1 | Dimension of input signal connector 4 |
Integer | n5 | 1 | Dimension of input signal connector 5 |
| Type | Name | Description |
|---|---|---|
input RealInput | u1[n1] | Connector of Real input signals 1 |
input RealInput | u2[n2] | Connector of Real input signals 2 |
input RealInput | u3[n3] | Connector of Real input signals 3 |
input RealInput | u4[n4] | Connector of Real input signals 4 |
input RealInput | u5[n5] | Connector of Real input signals 5 |
output RealOutput | y[n1 + n2 + n3 + n4 + n5] | Connector of Real output signals |
Block Modelica.Blocks.Routing.Multiplex6
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of input signal connector 1 |
Integer | n2 | 1 | Dimension of input signal connector 2 |
Integer | n3 | 1 | Dimension of input signal connector 3 |
Integer | n4 | 1 | Dimension of input signal connector 4 |
Integer | n5 | 1 | Dimension of input signal connector 5 |
Integer | n6 | 1 | Dimension of input signal connector 6 |
| Type | Name | Description |
|---|---|---|
input RealInput | u1[n1] | Connector of Real input signals 1 |
input RealInput | u2[n2] | Connector of Real input signals 2 |
input RealInput | u3[n3] | Connector of Real input signals 3 |
input RealInput | u4[n4] | Connector of Real input signals 4 |
input RealInput | u5[n5] | Connector of Real input signals 5 |
input RealInput | u6[n6] | Connector of Real input signals 6 |
output RealOutput | y[n1 + n2 + n3 + n4 + n5 + n6] | Connector of Real output signals |
Block Modelica.Blocks.Routing.DeMultiplex
The input connector is split up into output connectors.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n | 0 | Dimension of output signal connector |
| Type | Name | Description |
|---|---|---|
input RealInput | u[n + 0] | Connector of Real input signals |
output RealVectorOutput | y[n] | Connector of Real output signals |
Block Modelica.Blocks.Routing.DeMultiplex2
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of output signal connector 1 |
Integer | n2 | 1 | Dimension of output signal connector 2 |
| Type | Name | Description |
|---|---|---|
input RealInput | u[n1 + n2] | Connector of Real input signals |
output RealOutput | y1[n1] | Connector of Real output signals 1 |
output RealOutput | y2[n2] | Connector of Real output signals 2 |
Block Modelica.Blocks.Routing.DeMultiplex3
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of output signal connector 1 |
Integer | n2 | 1 | Dimension of output signal connector 2 |
Integer | n3 | 1 | Dimension of output signal connector 3 |
| Type | Name | Description |
|---|---|---|
input RealInput | u[n1 + n2 + n3] | Connector of Real input signals |
output RealOutput | y1[n1] | Connector of Real output signals 1 |
output RealOutput | y2[n2] | Connector of Real output signals 2 |
output RealOutput | y3[n3] | Connector of Real output signals 3 |
Block Modelica.Blocks.Routing.DeMultiplex4
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of output signal connector 1 |
Integer | n2 | 1 | Dimension of output signal connector 2 |
Integer | n3 | 1 | Dimension of output signal connector 3 |
Integer | n4 | 1 | Dimension of output signal connector 4 |
| Type | Name | Description |
|---|---|---|
input RealInput | u[n1 + n2 + n3 + n4] | Connector of Real input signals |
output RealOutput | y1[n1] | Connector of Real output signals 1 |
output RealOutput | y2[n2] | Connector of Real output signals 2 |
output RealOutput | y3[n3] | Connector of Real output signals 3 |
output RealOutput | y4[n4] | Connector of Real output signals 4 |
Block Modelica.Blocks.Routing.DeMultiplex5
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of output signal connector 1 |
Integer | n2 | 1 | Dimension of output signal connector 2 |
Integer | n3 | 1 | Dimension of output signal connector 3 |
Integer | n4 | 1 | Dimension of output signal connector 4 |
Integer | n5 | 1 | Dimension of output signal connector 5 |
| Type | Name | Description |
|---|---|---|
input RealInput | u[n1 + n2 + n3 + n4 + n5] | Connector of Real input signals |
output RealOutput | y1[n1] | Connector of Real output signals 1 |
output RealOutput | y2[n2] | Connector of Real output signals 2 |
output RealOutput | y3[n3] | Connector of Real output signals 3 |
output RealOutput | y4[n4] | Connector of Real output signals 4 |
output RealOutput | y5[n5] | Connector of Real output signals 5 |
Block Modelica.Blocks.Routing.DeMultiplex6
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).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | n1 | 1 | Dimension of output signal connector 1 |
Integer | n2 | 1 | Dimension of output signal connector 2 |
Integer | n3 | 1 | Dimension of output signal connector 3 |
Integer | n4 | 1 | Dimension of output signal connector 4 |
Integer | n5 | 1 | Dimension of output signal connector 5 |
Integer | n6 | 1 | Dimension of output signal connector 6 |
| Type | Name | Description |
|---|---|---|
input RealInput | u[n1 + n2 + n3 + n4 + n5 + n6] | Connector of Real input signals |
output RealOutput | y1[n1] | Connector of Real output signals 1 |
output RealOutput | y2[n2] | Connector of Real output signals 2 |
output RealOutput | y3[n3] | Connector of Real output signals 3 |
output RealOutput | y4[n4] | Connector of Real output signals 4 |
output RealOutput | y5[n5] | Connector of Real output signals 5 |
output RealOutput | y6[n6] | Connector of Real output signals 6 |
Model Modelica.Blocks.Routing.RealPassThrough
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).
| Type | Name | Description |
|---|---|---|
input RealInput | u | Connector of Real input signal |
output RealOutput | y | Connector of Real output signal |
Model Modelica.Blocks.Routing.IntegerPassThrough
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).
| Type | Name | Description |
|---|---|---|
input IntegerInput | u | Input signal |
output IntegerOutput | y | Output signal |
Model Modelica.Blocks.Routing.BooleanPassThrough
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).
| Type | Name | Description |
|---|---|---|
input BooleanInput | u | Connector of Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |