Modelica.Blocks.Routing

Library of blocks to combine and extract signals

Information


This package contains blocks to combine and extract signals.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Blocks.Routing.Replicator Replicator Signal replicator
Modelica.Blocks.Routing.ExtractSignal ExtractSignal Extract signals from an input signal vector
Modelica.Blocks.Routing.Extractor Extractor Extract scalar signal out of signal vector dependent on IntegerRealInput index
Modelica.Blocks.Routing.Multiplex2 Multiplex2 Multiplexer block for two input connectors
Modelica.Blocks.Routing.Multiplex3 Multiplex3 Multiplexer block for three input connectors
Modelica.Blocks.Routing.Multiplex4 Multiplex4 Multiplexer block for four input connectors
Modelica.Blocks.Routing.Multiplex5 Multiplex5 Multiplexer block for five input connectors
Modelica.Blocks.Routing.Multiplex6 Multiplex6 Multiplexer block for six input connectors
Modelica.Blocks.Routing.DeMultiplex2 DeMultiplex2 DeMultiplexer block for two output connectors
Modelica.Blocks.Routing.DeMultiplex3 DeMultiplex3 DeMultiplexer block for three output connectors
Modelica.Blocks.Routing.DeMultiplex4 DeMultiplex4 DeMultiplexer block for four output connectors
Modelica.Blocks.Routing.DeMultiplex5 DeMultiplex5 DeMultiplexer block for five output connectors
Modelica.Blocks.Routing.DeMultiplex6 DeMultiplex6 DeMultiplexer block for six output connectors
Modelica.Blocks.Routing.RealPassThrough RealPassThrough Pass a Real signal through without modification
Modelica.Blocks.Routing.IntegerPassThrough IntegerPassThrough Pass a Integer signal through without modification
Modelica.Blocks.Routing.BooleanPassThrough BooleanPassThrough Pass a Boolean signal through without modification


Modelica.Blocks.Routing.Replicator Modelica.Blocks.Routing.Replicator

Signal replicator

Modelica.Blocks.Routing.Replicator

Information


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).

Parameters

TypeNameDefaultDescription
Integernout1Number of outputs

Connectors

TypeNameDescription
input RealInputuConnector of Real input signal
output RealOutputy[nout]Connector of Real output signals

Modelica definition

block Replicator "Signal replicator"
  extends Modelica.Blocks.Interfaces.SIMO;
equation 
  y = fill(u, nout);
end Replicator;

Modelica.Blocks.Routing.ExtractSignal Modelica.Blocks.Routing.ExtractSignal

Extract signals from an input signal vector

Modelica.Blocks.Routing.ExtractSignal

Information


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 transfered 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).

Parameters

TypeNameDefaultDescription
Integernin1Number of inputs
Integernout1Number of outputs
Integerextract[nout]1:noutExtracting vector

Connectors

TypeNameDescription
input RealInputu[nin]Connector of Real input signals
output RealOutputy[nout]Connector of Real output signals

Modelica definition

block ExtractSignal "Extract signals from an input signal vector"
  extends Modelica.Blocks.Interfaces.MIMO;
  parameter Integer extract[nout]=1:nout "Extracting vector";

equation 
  for i in 1:nout loop
    y[i] = u[extract[i]];

  end for;
end ExtractSignal;

Modelica.Blocks.Routing.Extractor Modelica.Blocks.Routing.Extractor

Extract scalar signal out of signal vector dependent on IntegerRealInput index

Modelica.Blocks.Routing.Extractor

Information


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).

Parameters

TypeNameDefaultDescription
Integernin1Number of inputs
BooleanallowOutOfRangefalseIndex may be out of range
RealoutOfRangeValue1e10Output signal if index is out of range

Connectors

TypeNameDescription
input RealInputu[nin]Connector of Real input signals
output RealOutputyConnector of Real output signal
input IntegerInputindex 

Modelica definition

block Extractor 
  "Extract scalar signal out of signal vector dependent on IntegerRealInput index"

  extends Modelica.Blocks.Interfaces.MISO;

  parameter Boolean allowOutOfRange=false "Index may be out of range";
  parameter Real outOfRangeValue=1e10 "Output signal if index is out of range";

  Modelica.Blocks.Interfaces.IntegerInput index;
protected 
  Real k[nin];
equation 

  when {initial(),change(index)} then

    for i in 1:nin loop
      k[i] = if index == i then 1 else 0;

    end for;

  end when;

  y = if not allowOutOfRange or index > 0 and index <= nin then 
              k*u else outOfRangeValue;
end Extractor;

Modelica.Blocks.Routing.Multiplex2 Modelica.Blocks.Routing.Multiplex2

Multiplexer block for two input connectors

Modelica.Blocks.Routing.Multiplex2

Information


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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of input signal connector 1
Integern21dimension of input signal connector 2

Connectors

TypeNameDescription
input RealInputu1[n1]Connector of Real input signals 1
input RealInputu2[n2]Connector of Real input signals 2
output RealOutputy[n1 + n2]Connector of Real output signals

Modelica definition

block Multiplex2 "Multiplexer block for two input connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of input signal connector 1";
  parameter Integer n2=1 "dimension of input signal connector 2";
  Modelica.Blocks.Interfaces.RealInput u1[n1] 
    "Connector of Real input signals 1";
  Modelica.Blocks.Interfaces.RealInput u2[n2] 
    "Connector of Real input signals 2";
  Modelica.Blocks.Interfaces.RealOutput y[n1 + n2] 
    "Connector of Real output signals";

equation 
  [y] = [u1; u2];
end Multiplex2;

Modelica.Blocks.Routing.Multiplex3 Modelica.Blocks.Routing.Multiplex3

Multiplexer block for three input connectors

Modelica.Blocks.Routing.Multiplex3

Information


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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of input signal connector 1
Integern21dimension of input signal connector 2
Integern31dimension of input signal connector 3

Connectors

TypeNameDescription
input RealInputu1[n1]Connector of Real input signals 1
input RealInputu2[n2]Connector of Real input signals 2
input RealInputu3[n3]Connector of Real input signals 3
output RealOutputy[n1 + n2 + n3]Connector of Real output signals

Modelica definition

block Multiplex3 "Multiplexer block for three input connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of input signal connector 1";
  parameter Integer n2=1 "dimension of input signal connector 2";
  parameter Integer n3=1 "dimension of input signal connector 3";
  Modelica.Blocks.Interfaces.RealInput u1[n1] 
    "Connector of Real input signals 1";
  Modelica.Blocks.Interfaces.RealInput u2[n2] 
    "Connector of Real input signals 2";
  Modelica.Blocks.Interfaces.RealInput u3[n3] 
    "Connector of Real input signals 3";
  Modelica.Blocks.Interfaces.RealOutput y[n1 + n2 + n3] 
    "Connector of Real output signals";

equation 
  [y] = [u1; u2; u3];
end Multiplex3;

Modelica.Blocks.Routing.Multiplex4 Modelica.Blocks.Routing.Multiplex4

Multiplexer block for four input connectors

Modelica.Blocks.Routing.Multiplex4

Information


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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of input signal connector 1
Integern21dimension of input signal connector 2
Integern31dimension of input signal connector 3
Integern41dimension of input signal connector 4

Connectors

TypeNameDescription
input RealInputu1[n1]Connector of Real input signals 1
input RealInputu2[n2]Connector of Real input signals 2
input RealInputu3[n3]Connector of Real input signals 3
input RealInputu4[n4]Connector of Real input signals 4
output RealOutputy[n1 + n2 + n3 + n4]Connector of Real output signals

Modelica definition

block Multiplex4 "Multiplexer block for four input connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of input signal connector 1";
  parameter Integer n2=1 "dimension of input signal connector 2";
  parameter Integer n3=1 "dimension of input signal connector 3";
  parameter Integer n4=1 "dimension of input signal connector 4";
  Modelica.Blocks.Interfaces.RealInput u1[n1] 
    "Connector of Real input signals 1";
  Modelica.Blocks.Interfaces.RealInput u2[n2] 
    "Connector of Real input signals 2";
  Modelica.Blocks.Interfaces.RealInput u3[n3] 
    "Connector of Real input signals 3";
  Modelica.Blocks.Interfaces.RealInput u4[n4] 
    "Connector of Real input signals 4";
  Modelica.Blocks.Interfaces.RealOutput y[n1 + n2 + n3 + n4] 
    "Connector of Real output signals";

equation 
  [y] = [u1; u2; u3; u4];
end Multiplex4;

Modelica.Blocks.Routing.Multiplex5 Modelica.Blocks.Routing.Multiplex5

Multiplexer block for five input connectors

Modelica.Blocks.Routing.Multiplex5

Information


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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of input signal connector 1
Integern21dimension of input signal connector 2
Integern31dimension of input signal connector 3
Integern41dimension of input signal connector 4
Integern51dimension of input signal connector 5

Connectors

TypeNameDescription
input RealInputu1[n1]Connector of Real input signals 1
input RealInputu2[n2]Connector of Real input signals 2
input RealInputu3[n3]Connector of Real input signals 3
input RealInputu4[n4]Connector of Real input signals 4
input RealInputu5[n5]Connector of Real input signals 5
output RealOutputy[n1 + n2 + n3 + n4 + n5]Connector of Real output signals

Modelica definition

block Multiplex5 "Multiplexer block for five input connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of input signal connector 1";
  parameter Integer n2=1 "dimension of input signal connector 2";
  parameter Integer n3=1 "dimension of input signal connector 3";
  parameter Integer n4=1 "dimension of input signal connector 4";
  parameter Integer n5=1 "dimension of input signal connector 5";
  Modelica.Blocks.Interfaces.RealInput u1[n1] 
    "Connector of Real input signals 1";
  Modelica.Blocks.Interfaces.RealInput u2[n2] 
    "Connector of Real input signals 2";
  Modelica.Blocks.Interfaces.RealInput u3[n3] 
    "Connector of Real input signals 3";
  Modelica.Blocks.Interfaces.RealInput u4[n4] 
    "Connector of Real input signals 4";
  Modelica.Blocks.Interfaces.RealInput u5[n5] 
    "Connector of Real input signals 5";
  Modelica.Blocks.Interfaces.RealOutput y[n1 + n2 + n3 + n4 + n5] 
    "Connector of Real output signals";

equation 
  [y] = [u1; u2; u3; u4; u5];
end Multiplex5;

Modelica.Blocks.Routing.Multiplex6 Modelica.Blocks.Routing.Multiplex6

Multiplexer block for six input connectors

Modelica.Blocks.Routing.Multiplex6

Information


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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of input signal connector 1
Integern21dimension of input signal connector 2
Integern31dimension of input signal connector 3
Integern41dimension of input signal connector 4
Integern51dimension of input signal connector 5
Integern61dimension of input signal connector 6

Connectors

TypeNameDescription
input RealInputu1[n1]Connector of Real input signals 1
input RealInputu2[n2]Connector of Real input signals 2
input RealInputu3[n3]Connector of Real input signals 3
input RealInputu4[n4]Connector of Real input signals 4
input RealInputu5[n5]Connector of Real input signals 5
input RealInputu6[n6]Connector of Real input signals 6
output RealOutputy[n1 + n2 + n3 + n4 + n5 + n6]Connector of Real output signals

Modelica definition

block Multiplex6 "Multiplexer block for six input connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of input signal connector 1";
  parameter Integer n2=1 "dimension of input signal connector 2";
  parameter Integer n3=1 "dimension of input signal connector 3";
  parameter Integer n4=1 "dimension of input signal connector 4";
  parameter Integer n5=1 "dimension of input signal connector 5";
  parameter Integer n6=1 "dimension of input signal connector 6";
  Modelica.Blocks.Interfaces.RealInput u1[n1] 
    "Connector of Real input signals 1";
  Modelica.Blocks.Interfaces.RealInput u2[n2] 
    "Connector of Real input signals 2";
  Modelica.Blocks.Interfaces.RealInput u3[n3] 
    "Connector of Real input signals 3";

  Modelica.Blocks.Interfaces.RealInput u4[n4] 
    "Connector of Real input signals 4";
  Modelica.Blocks.Interfaces.RealInput u5[n5] 
    "Connector of Real input signals 5";
  Modelica.Blocks.Interfaces.RealInput u6[n6] 
    "Connector of Real input signals 6";
  Modelica.Blocks.Interfaces.RealOutput y[n1 + n2 + n3 + n4 + n5 + n6] 
    "Connector of Real output signals";

equation 
  [y] = [u1; u2; u3; u4; u5; u6];
end Multiplex6;

Modelica.Blocks.Routing.DeMultiplex2 Modelica.Blocks.Routing.DeMultiplex2

DeMultiplexer block for two output connectors

Modelica.Blocks.Routing.DeMultiplex2

Information


The input connector is splitted 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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of output signal connector 1
Integern21dimension of output signal connector 2

Connectors

TypeNameDescription
input RealInputu[n1 + n2]Connector of Real input signals
output RealOutputy1[n1]Connector of Real output signals 1
output RealOutputy2[n2]Connector of Real output signals 2

Modelica definition

block DeMultiplex2 "DeMultiplexer block for two output connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of output signal connector 1";
  parameter Integer n2=1 "dimension of output signal connector 2";
  Modelica.Blocks.Interfaces.RealInput u[n1 + n2] 
    "Connector of Real input signals";
  Modelica.Blocks.Interfaces.RealOutput y1[n1] 
    "Connector of Real output signals 1";
  Modelica.Blocks.Interfaces.RealOutput y2[n2] 
    "Connector of Real output signals 2";

equation 
  [u] = [y1; y2];
end DeMultiplex2;

Modelica.Blocks.Routing.DeMultiplex3 Modelica.Blocks.Routing.DeMultiplex3

DeMultiplexer block for three output connectors

Modelica.Blocks.Routing.DeMultiplex3

Information


The input connector is splitted up 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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of output signal connector 1
Integern21dimension of output signal connector 2
Integern31dimension of output signal connector 3

Connectors

TypeNameDescription
input RealInputu[n1 + n2 + n3]Connector of Real input signals
output RealOutputy1[n1]Connector of Real output signals 1
output RealOutputy2[n2]Connector of Real output signals 2
output RealOutputy3[n3]Connector of Real output signals 3

Modelica definition

block DeMultiplex3 "DeMultiplexer block for three output connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of output signal connector 1";
  parameter Integer n2=1 "dimension of output signal connector 2";
  parameter Integer n3=1 "dimension of output signal connector 3";
  Modelica.Blocks.Interfaces.RealInput u[n1 + n2 + n3] 
    "Connector of Real input signals";
  Modelica.Blocks.Interfaces.RealOutput y1[n1] 
    "Connector of Real output signals 1";
  Modelica.Blocks.Interfaces.RealOutput y2[n2] 
    "Connector of Real output signals 2";
  Modelica.Blocks.Interfaces.RealOutput y3[n3] 
    "Connector of Real output signals 3";

equation 
  [u] = [y1; y2; y3];
end DeMultiplex3;

Modelica.Blocks.Routing.DeMultiplex4 Modelica.Blocks.Routing.DeMultiplex4

DeMultiplexer block for four output connectors

Modelica.Blocks.Routing.DeMultiplex4

Information


The input connector is splitted up 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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of output signal connector 1
Integern21dimension of output signal connector 2
Integern31dimension of output signal connector 3
Integern41dimension of output signal connector 4

Connectors

TypeNameDescription
input RealInputu[n1 + n2 + n3 + n4]Connector of Real input signals
output RealOutputy1[n1]Connector of Real output signals 1
output RealOutputy2[n2]Connector of Real output signals 2
output RealOutputy3[n3]Connector of Real output signals 3
output RealOutputy4[n4]Connector of Real output signals 4

Modelica definition

block DeMultiplex4 "DeMultiplexer block for four output connectors"

  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of output signal connector 1";
  parameter Integer n2=1 "dimension of output signal connector 2";
  parameter Integer n3=1 "dimension of output signal connector 3";
  parameter Integer n4=1 "dimension of output signal connector 4";
  Modelica.Blocks.Interfaces.RealInput u[n1 + n2 + n3 + n4] 
    "Connector of Real input signals";
  Modelica.Blocks.Interfaces.RealOutput y1[n1] 
    "Connector of Real output signals 1";
  Modelica.Blocks.Interfaces.RealOutput y2[n2] 
    "Connector of Real output signals 2";
  Modelica.Blocks.Interfaces.RealOutput y3[n3] 
    "Connector of Real output signals 3";
  Modelica.Blocks.Interfaces.RealOutput y4[n4] 
    "Connector of Real output signals 4";

equation 
  [u] = [y1; y2; y3; y4];
end DeMultiplex4;

Modelica.Blocks.Routing.DeMultiplex5 Modelica.Blocks.Routing.DeMultiplex5

DeMultiplexer block for five output connectors

Modelica.Blocks.Routing.DeMultiplex5

Information


The input connector is splitted up 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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of output signal connector 1
Integern21dimension of output signal connector 2
Integern31dimension of output signal connector 3
Integern41dimension of output signal connector 4
Integern51dimension of output signal connector 5

Connectors

TypeNameDescription
input RealInputu[n1 + n2 + n3 + n4 + n5]Connector of Real input signals
output RealOutputy1[n1]Connector of Real output signals 1
output RealOutputy2[n2]Connector of Real output signals 2
output RealOutputy3[n3]Connector of Real output signals 3
output RealOutputy4[n4]Connector of Real output signals 4
output RealOutputy5[n5]Connector of Real output signals 5

Modelica definition

block DeMultiplex5 "DeMultiplexer block for five output connectors"

  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of output signal connector 1";
  parameter Integer n2=1 "dimension of output signal connector 2";
  parameter Integer n3=1 "dimension of output signal connector 3";
  parameter Integer n4=1 "dimension of output signal connector 4";
  parameter Integer n5=1 "dimension of output signal connector 5";
  Modelica.Blocks.Interfaces.RealInput u[n1 + n2 + n3 + n4 + n5] 
    "Connector of Real input signals";
  Modelica.Blocks.Interfaces.RealOutput y1[n1] 
    "Connector of Real output signals 1";
  Modelica.Blocks.Interfaces.RealOutput y2[n2] 
    "Connector of Real output signals 2";
  Modelica.Blocks.Interfaces.RealOutput y3[n3] 
    "Connector of Real output signals 3";
  Modelica.Blocks.Interfaces.RealOutput y4[n4] 
    "Connector of Real output signals 4";
  Modelica.Blocks.Interfaces.RealOutput y5[n5] 
    "Connector of Real output signals 5";

equation 
  [u] = [y1; y2; y3; y4; y5];
end DeMultiplex5;

Modelica.Blocks.Routing.DeMultiplex6 Modelica.Blocks.Routing.DeMultiplex6

DeMultiplexer block for six output connectors

Modelica.Blocks.Routing.DeMultiplex6

Information


The input connector is splitted up 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.Interfaces.BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern11dimension of output signal connector 1
Integern21dimension of output signal connector 2
Integern31dimension of output signal connector 3
Integern41dimension of output signal connector 4
Integern51dimension of output signal connector 5
Integern61dimension of output signal connector 6

Connectors

TypeNameDescription
input RealInputu[n1 + n2 + n3 + n4 + n5 + n6]Connector of Real input signals
output RealOutputy1[n1]Connector of Real output signals 1
output RealOutputy2[n2]Connector of Real output signals 2
output RealOutputy3[n3]Connector of Real output signals 3
output RealOutputy4[n4]Connector of Real output signals 4
output RealOutputy5[n5]Connector of Real output signals 5
output RealOutputy6[n6]Connector of Real output signals 6

Modelica definition

block DeMultiplex6 "DeMultiplexer block for six output connectors"
  extends Modelica.Blocks.Interfaces.BlockIcon;
  parameter Integer n1=1 "dimension of output signal connector 1";
  parameter Integer n2=1 "dimension of output signal connector 2";
  parameter Integer n3=1 "dimension of output signal connector 3";
  parameter Integer n4=1 "dimension of output signal connector 4";
  parameter Integer n5=1 "dimension of output signal connector 5";
  parameter Integer n6=1 "dimension of output signal connector 6";
  Modelica.Blocks.Interfaces.RealInput u[n1 + n2 + n3 + n4 + n5 + n6] 
    "Connector of Real input signals";
  Modelica.Blocks.Interfaces.RealOutput y1[n1] 
    "Connector of Real output signals 1";
  Modelica.Blocks.Interfaces.RealOutput y2[n2] 
    "Connector of Real output signals 2";
  Modelica.Blocks.Interfaces.RealOutput y3[n3] 
    "Connector of Real output signals 3";
  Modelica.Blocks.Interfaces.RealOutput y4[n4] 
    "Connector of Real output signals 4";
  Modelica.Blocks.Interfaces.RealOutput y5[n5] 
    "Connector of Real output signals 5";
  Modelica.Blocks.Interfaces.RealOutput y6[n6] 
    "Connector of Real output signals 6";

equation 
  [u] = [y1; y2; y3; y4; y5; y6];
end DeMultiplex6;

Modelica.Blocks.Routing.RealPassThrough Modelica.Blocks.Routing.RealPassThrough

Pass a Real signal through without modification

Modelica.Blocks.Routing.RealPassThrough

Information


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.BlockIcon (Basic graphical layout of input/output block).

Connectors

TypeNameDescription
input RealInputuInput signal
output RealOutputyOutput signal

Modelica definition

model RealPassThrough 
  "Pass a Real signal through without modification"

  extends Modelica.Blocks.Interfaces.BlockIcon;

  Modelica.Blocks.Interfaces.RealInput u "Input signal";
  Modelica.Blocks.Interfaces.RealOutput y "Output signal";
equation 
  y = u;
end RealPassThrough;

Modelica.Blocks.Routing.IntegerPassThrough Modelica.Blocks.Routing.IntegerPassThrough

Pass a Integer signal through without modification

Modelica.Blocks.Routing.IntegerPassThrough

Information


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.Interfaces.IntegerBlockIcon (Basic graphical layout of Integer block).

Connectors

TypeNameDescription
input IntegerInputuInput signal
output IntegerOutputyOutput signal

Modelica definition

model IntegerPassThrough 
  "Pass a Integer signal through without modification"
  extends Modelica.Blocks.Interfaces.IntegerBlockIcon;

  Modelica.Blocks.Interfaces.IntegerInput u "Input signal";
  Modelica.Blocks.Interfaces.IntegerOutput y "Output signal";
equation 
  y = u;

end IntegerPassThrough;

Modelica.Blocks.Routing.BooleanPassThrough Modelica.Blocks.Routing.BooleanPassThrough

Pass a Boolean signal through without modification

Modelica.Blocks.Routing.BooleanPassThrough

Information


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.BooleanBlockIcon (Basic graphical layout of Boolean block).

Connectors

TypeNameDescription
input BooleanInputuInput signal
output BooleanOutputyOutput signal

Modelica definition

model BooleanPassThrough 
  "Pass a Boolean signal through without modification"
  extends Modelica.Blocks.Interfaces.BooleanBlockIcon;

  Modelica.Blocks.Interfaces.BooleanInput u "Input signal";
  Modelica.Blocks.Interfaces.BooleanOutput y "Output signal";
equation 
  y = u;
end BooleanPassThrough;

Automatically generated Fri Nov 12 16:27:39 2010.