aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Stubs Collection')
-rw-r--r--Software/Stubs Collection/stubs/arm test.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/arm test.cs b/Software/Stubs Collection/stubs/arm test.cs
new file mode 100644
index 000000000..3c9b1d2ff
--- /dev/null
+++ b/Software/Stubs Collection/stubs/arm test.cs
@@ -0,0 +1,43 @@
+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;
+
+public void OnExecute(StubManager stubManager)
+{
+int i;
+ProgressRequest progressRequest = new ProgressRequest();
+
+ for (i = 1;i<= 10; i++)
+ {
+ progressRequest.Amount = 0xB11;
+ progressRequest.Delay = 0;
+ var response = stubManager.Run<ProgressResponse>(progressRequest);
+ Thread.Sleep(12000);
+ progressRequest.Amount = 0xB12;
+ response = stubManager.Run<ProgressResponse>(progressRequest);
+ Thread.Sleep(1000);
+ stubManager.Write("Arm Test \t"+ i + " direction 0 progress "+ response.Progress +"\n");
+
+ }
+
+ for (i = 1;i<= 10; i++)
+ {
+ progressRequest.Amount = 0xB11;
+ progressRequest.Delay = 1;
+ var response = stubManager.Run<ProgressResponse>(progressRequest);
+ Thread.Sleep(12000);
+ progressRequest.Amount = 0xB12;
+ response = stubManager.Run<ProgressResponse>(progressRequest);
+ stubManager.Write("Arm Test \t"+ i + " direction 1 progress "+ response.Progress +"\n");
+
+ Thread.Sleep(1000);
+ }
+} \ No newline at end of file