aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/Scripts/check_kval_load_arm.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/check_kval_load_arm.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Stubs Collection/stubs/Scripts/check_kval_load_arm.cs')
-rw-r--r--Software/Stubs Collection/stubs/Scripts/check_kval_load_arm.cs80
1 files changed, 0 insertions, 80 deletions
diff --git a/Software/Stubs Collection/stubs/Scripts/check_kval_load_arm.cs b/Software/Stubs Collection/stubs/Scripts/check_kval_load_arm.cs
deleted file mode 100644
index 8276ad449..000000000
--- a/Software/Stubs Collection/stubs/Scripts/check_kval_load_arm.cs
+++ /dev/null
@@ -1,80 +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.Stubs;
-
-const Int32 x_KVAL_HOLD = 0x09;
-const Int32 x_KVAL_RUN = 0x0A;
-const Int32 x_KVAL_ACC = 0x0B;
-const Int32 x_KVAL_DEC = 0x0C;
-
-const Int32 x_GET_PARAM = 0x20;
-
-
-
-public void OnExecute(StubManager stubManager)
-{
-
- while (true)
- {
- stubManager.Write("\nLeft Load KVAL \t");
- var response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,19, (x_GET_PARAM | x_KVAL_HOLD)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\t");
-
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,19, (x_GET_PARAM | x_KVAL_RUN)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\t");
-
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,19, (x_GET_PARAM | x_KVAL_ACC)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\t");
-
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,19, (x_GET_PARAM | x_KVAL_DEC)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\n");
-
-
- stubManager.Write("Right Load KVAL \t");
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,24, (x_GET_PARAM | x_KVAL_HOLD)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\t");
-
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,24, (x_GET_PARAM | x_KVAL_RUN)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\t");
-
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,24, (x_GET_PARAM | x_KVAL_ACC)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\t");
-
- response = stubManager.Run<StubMotorResponse>("StubMotorRequest" ,24, (x_GET_PARAM | x_KVAL_DEC)<<8, 0, 0);
- stubManager.Write(response.RecivedData);
- stubManager.Write("\n");
- stubManager.Write(DateTime.Now.ToString("MM_dd_yyyy_HH_mm_ss"));
- Thread.Sleep(1000);
-
-
-
-
-
-
-}
-
-
-
-
-
-
-
-
-
-
-} \ No newline at end of file