aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs')
-rw-r--r--Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs52
1 files changed, 0 insertions, 52 deletions
diff --git a/Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs b/Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs
deleted file mode 100644
index 9422e2cdc..000000000
--- a/Software/Stubs Collection/stubs/Scripts/ChangePidDuringRun.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.Text;
-using System.Linq;
-using System.Drawing;
-using System.Diagnostics;
-using System.Windows.Forms;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using Tango.PMR.Stubs;
-using Tango.PMR.Hardware;
-using Tango.Stubs;
-
-public void OnExecute(StubManager stubManager)
-{
-StubHeatingTestRequest stubHeatingTestRequest = new StubHeatingTestRequest();
-
-stubHeatingTestRequest.DryerZone1Temp = 0;
-stubHeatingTestRequest.DryerZone2Temp = 0;
-
-HardwarePidControl hardwarePidControl = new HardwarePidControl();
-hardwarePidControl.OutputProportionalPowerLimit = 0.5; //Maximal additional power
-hardwarePidControl.OutputProportionalBand = 5;
-hardwarePidControl.DerivativeTime = 0; //Kd
-hardwarePidControl.SensorCorrectionAdjustment = 0;
-hardwarePidControl.SensorMinValue = 0;
-hardwarePidControl.SensorMaxValue = 0;
-hardwarePidControl.SetPointRampRateorSoftStartRamp = 100; //Ki divider
-hardwarePidControl.SetPointControlOutputRate = 0;
-hardwarePidControl.ControlOutputType = 0.001; ////Dt
-hardwarePidControl.SsrControlOutputType = 0;
-hardwarePidControl.OutputOnOffHysteresisValue = 100; //Kp divider
-hardwarePidControl.ProcessVariableSamplingRate = 10;
-hardwarePidControl.PvInputFilterFactorMode = 4; //averaging the readouts / number of samples
-hardwarePidControl.OutputProportionalCycleTime = 0;
-hardwarePidControl.AcHeatersHalfCycleTime = 0;
-hardwarePidControl.PidActive = false;
-hardwarePidControl.Epsilon = 0;
-hardwarePidControl.OutputOnOffHysteresisValue = 100;
-
-hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorWinder;
-hardwarePidControl.IntegralTime = 8000; //Ki
-hardwarePidControl.ProportionalGain = 7000; //Kp
-
-stubHeatingTestRequest.HardwarePidControl1 = hardwarePidControl;
-
-StubHeatingTestPollRequest stubHeatingTestPollRequest = new StubHeatingTestPollRequest();
-
-var response = stubManager.Run<StubHeatingTestResponse>(stubHeatingTestRequest);
-
-
-} \ No newline at end of file