Ticket #4481: test_pwm_driver.mo

File test_pwm_driver.mo, 789 bytes (added by rahul.dutta.bits@…, 9 years ago)

PI control testing

Line 
1model test_pwm_driver
2 Modelica.Blocks.Sources.Constant const1(k = 0.3) annotation(
3 Placement(visible = true, transformation(origin = {-72, 16}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
4 PI_discreet pI_discreet1(Init = 50, Ki = 0.2) annotation(
5 Placement(visible = true, transformation(origin = {-18, 16}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
6equation
7 connect(const1.y, pI_discreet1.e) annotation(
8 Line(points = {{-60, 16}, {-30, 16}}, color = {0, 0, 127}));
9 annotation(
10 uses(Modelica(version = "3.2.2"), Modelica_Synchronous(version = "0.92.1")),
11 experiment(StartTime = 0, StopTime = 2, Tolerance = 1e-6, Interval = 0.001),
12 __OpenModelica_simulationFlags(jacobian = "", s = "dassl", lv = "LOG_STATS"));
13end test_pwm_driver;