block Multiplex5 "Multiplexer block for five input connectors"
extends Modelica.Blocks.Icons.Block;
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"
annotation (Placement(transformation(extent = {
{-140, 80},
{-100, 120}})));
Modelica.Blocks.Interfaces.RealInput u2[n2] "Connector of Real input signals 2"
annotation (Placement(transformation(extent = {
{-140, 30},
{-100, 70}})));
Modelica.Blocks.Interfaces.RealInput u3[n3] "Connector of Real input signals 3"
annotation (Placement(transformation(extent = {
{-140, -20},
{-100, 20}})));
Modelica.Blocks.Interfaces.RealInput u4[n4] "Connector of Real input signals 4"
annotation (Placement(transformation(extent = {
{-140, -70},
{-100, -30}})));
Modelica.Blocks.Interfaces.RealInput u5[n5] "Connector of Real input signals 5"
annotation (Placement(transformation(extent = {
{-140, -120},
{-100, -80}})));
Modelica.Blocks.Interfaces.RealOutput y[n1 + n2 + n3 + n4 + n5] "Connector of Real output signals"
annotation (Placement(transformation(extent = {
{100, -10},
{120, 10}})));
equation
[y] = [u1; u2; u3; u4; u5];
annotation (
Documentation(info = "<html>\n<p>\nThe output connector is the <strong>concatenation</strong> of the five input connectors.\nNote, that the dimensions of the input connector signals have to be\nexplicitly defined via parameters n1, n2, n3, n4 and n5.\n</p>\n</html>"),
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Line(
points = {
{8, 0},
{102, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, 100},
{-60, 100},
{0, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, 50},
{-60, 50},
{-4, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, 0},
{-7, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, -50},
{-60, -50},
{-4, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, -100},
{-60, -100},
{0, 0}},
color = {0, 0, 127}),
Ellipse(
extent = {
{-15, 15},
{15, -15}},
fillColor = {0, 0, 127},
fillPattern = FillPattern.Solid,
lineColor = {0, 0, 127})}),
Diagram(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Line(
points = {
{-100, 100},
{-60, 100},
{0, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, -100},
{-60, -100},
{0, 0}},
color = {0, 0, 127}),
Line(
points = {
{8, 0},
{102, 0}},
color = {0, 0, 127}),
Ellipse(
extent = {
{-15, 15},
{15, -15}},
fillColor = {0, 0, 127},
fillPattern = FillPattern.Solid,
lineColor = {0, 0, 127}),
Line(
points = {
{-100, 50},
{-60, 50},
{-4, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, 0},
{-7, 0}},
color = {0, 0, 127}),
Line(
points = {
{-100, -50},
{-60, -50},
{-4, 0}},
color = {0, 0, 127})}));
end Multiplex5;