Ticket #5808: OMEdit_4_relay_development.mo

File OMEdit_4_relay_development.mo, 1.8 KB (added by anonymous, 6 years ago)

a file showing the problem

Line 
1model OMEdit_4_relay_development
2 Modelica.Blocks.Sources.Sine sine0(amplitude = 1.5, freqHz = 50, offset = 1, phase = 0.349066) annotation(
3 Placement(visible = true, transformation(origin = {-80, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
4 Modelica.Blocks.Sources.Sine sine1(amplitude = 1.5, freqHz = 50, offset = 1, phase = 0.349066) annotation(
5 Placement(visible = true, transformation(origin = {-50, -12}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
6 Modelica.Blocks.Sources.Sine sine2(amplitude = 1.5, freqHz = 50, offset = 1, phase = 0.349066) annotation(
7 Placement(visible = true, transformation(origin = {-78, -58}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
8 Modelica.Blocks.Discrete.Sampler samplermd(samplePeriod = 1 / 10000) annotation(
9 Placement(visible = true, transformation(origin = {6, 58}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
10 md_filter filtermd(nin = 1, x = 0.5) annotation(
11 Placement(visible = true, transformation(origin = {50, 22}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
12 md_filter filter6(nin = 1, x = 3) annotation(
13 Placement(visible = true, transformation(origin = {40, -28}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
14equation
15 connect(sine0.y, samplermd.u) annotation(
16 Line(points = {{-69, 40}, {-58.5, 40}, {-58.5, 58}, {-6, 58}}, color = {0, 255, 0}));
17 connect(sine1.y, filtermd.u[1]) annotation(
18 Line(points = {{-39, -12}, {-16.5, -12}, {-16.5, 22}, {38, 22}}, color = {0, 0, 127}));
19 connect(sine1.y, filter6.u[1]) annotation(
20 Line(points = {{-38, -12}, {-16, -12}, {-16, -28}, {28, -28}}, color = {0, 0, 127}));
21protected
22 annotation(
23 Icon(coordinateSystem(extent = {{-10000, -10000}, {10000, 10000}})),
24 uses(Modelica(version = "3.2.3")));
25end OMEdit_4_relay_development;