| 1 | package TestPackage
|
|---|
| 2 | model Test
|
|---|
| 3 | Modelica.Blocks.Sources.Step step annotation(
|
|---|
| 4 | Placement(visible = true, transformation(origin = {-38, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|---|
| 5 | MyModel myModel annotation(
|
|---|
| 6 | Placement(visible = true, transformation(origin = {20, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|---|
| 7 | equation
|
|---|
| 8 | connect(myModel.u, step.y) annotation(
|
|---|
| 9 | Line(points = {{10, 0}, {-26, 0}}, color = {0, 0, 127}));
|
|---|
| 10 | end Test;
|
|---|
| 11 |
|
|---|
| 12 | model MyModel
|
|---|
| 13 | Modelica.Blocks.Continuous.FirstOrder firstOrder(T = 1) annotation(
|
|---|
| 14 | Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|---|
| 15 | Modelica.Blocks.Interfaces.RealInput u annotation(
|
|---|
| 16 | 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)));
|
|---|
| 17 | Modelica.Blocks.Interfaces.RealOutput y annotation(
|
|---|
| 18 | 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)));
|
|---|
| 19 | equation
|
|---|
| 20 | connect(firstOrder.u, u) annotation(
|
|---|
| 21 | Line(points = {{-12, 0}, {-106, 0}}, color = {0, 0, 127}));
|
|---|
| 22 | connect(y, firstOrder.y) annotation(
|
|---|
| 23 | Line(points = {{108, 0}, {12, 0}}, color = {0, 0, 127}));
|
|---|
| 24 |
|
|---|
| 25 | annotation(
|
|---|
| 26 | uses(Modelica(version = "3.2.3")));
|
|---|
| 27 | end MyModel;
|
|---|
| 28 | equation
|
|---|
| 29 |
|
|---|
| 30 | annotation(
|
|---|
| 31 | uses(Modelica(version = "3.2.3")));
|
|---|
| 32 | end TestPackage;
|
|---|