Ticket #6438: Test1.mo

File Test1.mo, 1.1 KB (added by massimo ceraolo, 5 years ago)
Line 
1package Test1
2
3 model MyModel
4 Modelica.Blocks.Continuous.FirstOrder firstOrder(T = 1) annotation(
5 Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
6 Modelica.Blocks.Interfaces.RealInput u annotation(
7 Placement(visible = true, transformation(origin = {-106, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {-106, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
8 Modelica.Blocks.Interfaces.RealOutput y annotation(
9 Placement(visible = true, transformation(origin = {108, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {108, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
10 equation
11 connect(firstOrder.u, u) annotation(
12 Line(points = {{-12, 0}, {-106, 0}}, color = {0, 0, 127}));
13 connect(y, firstOrder.y) annotation(
14 Line(points = {{108, 0}, {12, 0}}, color = {0, 0, 127}));
15
16 annotation(
17 uses(Modelica(version = "3.2.3")));
18 end MyModel;
19equation
20
21end Test1;