Ticket #5908: Test.mo

File Test.mo, 1.1 KB (added by Andrea Bartolini, 5 years ago)
Line 
1package Test
2 model M1
3 Modelica.Blocks.Interfaces.RealInput u annotation(
4 Placement(visible = true, transformation(origin = {-78, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {-70, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
5 Modelica.Blocks.Interfaces.RealOutput y annotation(
6 Placement(visible = true, transformation(origin = {68, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {70, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
7 annotation(
8 Icon(graphics = {Rectangle(extent = {{-60, 60}, {60, -60}}), Text(origin = {0, 2}, extent = {{-42, 40}, {42, -40}}, textString = "M1")}));
9 end M1;
10
11 model M2
12 Test.M1 m1 annotation(
13 Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
14 Test.M1 m2 annotation(
15 Placement(visible = true, transformation(origin = {32, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
16 end M2;
17 annotation(
18 Diagram(coordinateSystem(extent = {{-200, -100}, {200, 100}}, grid = {0.5, 0.5})),
19 uses(Modelica(version = "3.2.3")));
20end Test;