Ticket #6437: MyModel.mo

File MyModel.mo, 1001 bytes (added by massimo ceraolo, 5 years ago)
Line 
1model MyModel
2 Modelica.Blocks.Continuous.FirstOrder firstOrder(T = 1) annotation(
3 Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
4 Modelica.Blocks.Interfaces.RealInput u annotation(
5 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)));
6 Modelica.Blocks.Interfaces.RealOutput y annotation(
7 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)));
8equation
9 connect(firstOrder.u, u) annotation(
10 Line(points = {{-12, 0}, {-106, 0}}, color = {0, 0, 127}));
11 connect(y, firstOrder.y) annotation(
12 Line(points = {{108, 0}, {12, 0}}, color = {0, 0, 127}));
13
14annotation(
15 uses(Modelica(version = "3.2.3")));
16end MyModel;