Ticket #4588: units.mo

File units.mo, 1.6 KB (added by massimo ceraolo, 7 years ago)
Line 
1model units
2 Modelica.Blocks.Sources.Constant const annotation(
3 Placement(visible = true, transformation(extent = {{-90, 18}, {-70, 38}}, rotation = 0)));
4 Modelica.Blocks.Math.Feedback feedback annotation(
5 Placement(visible = true, transformation(extent = {{-14, 18}, {6, 38}}, rotation = 0)));
6 Modelica.Blocks.Sources.Constant const1 annotation(
7 Placement(visible = true, transformation(origin = {-4, -26}, extent = {{-10, -10}, {10, 10}}, rotation = 90)));
8 Modelica.Blocks.Math.UnitConversions.From_kmh from_kmh annotation(
9 Placement(visible = true, transformation(extent = {{-48, 18}, {-28, 38}}, rotation = 0)));
10 Modelica.Blocks.Math.UnitConversions.From_kmh from_kmh1 annotation(
11 Placement(visible = true, transformation(origin = {-4, 4}, extent = {{-10, -10}, {10, 10}}, rotation = 90)));
12equation
13 connect(feedback.u1, from_kmh.y) annotation(
14 Line(points = {{-12, 26}, {-19.5, 26}, {-19.5, 28}, {-27, 28}}, color = {0, 0, 127}));
15 connect(feedback.u2, from_kmh1.y) annotation(
16 Line(points = {{-4, 18}, {-4, 16}}, color = {0, 0, 127}));
17 connect(const.y, from_kmh.u) annotation(
18 Line(points = {{-69, 28}, {-59.5, 28}, {-59.5, 26}, {-50, 26}}, color = {0, 0, 127}));
19 connect(from_kmh1.u, const1.y) annotation(
20 Line(points = {{-4, -8}, {-4, -8}, {-4, -14}, {-4, -14}}, color = {0, 0, 127}));
21 annotation(
22 Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -40}, {100, 40}})),
23 Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -40}, {100, 40}})),
24 uses(Modelica(version = "3.2.2")),
25 version = "",
26 __OpenModelica_commandLineOptions = "");
27end units;