aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/SetWindingRotations.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-01-27 09:18:58 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-01-27 09:18:58 +0200
commit1d4d327571d4c0c9f4e17411551bd4dae1e2aed0 (patch)
tree54cfe3cb1d789c05b7270b07904d0ead44aa236a /Software/Stubs Collection/stubs/SetWindingRotations.cs
parent31096fb03e434d52738b07acd881b87516c3c3d5 (diff)
downloadTango-1d4d327571d4c0c9f4e17411551bd4dae1e2aed0.tar.gz
Tango-1d4d327571d4c0c9f4e17411551bd4dae1e2aed0.zip
STUBS
Diffstat (limited to 'Software/Stubs Collection/stubs/SetWindingRotations.cs')
-rw-r--r--Software/Stubs Collection/stubs/SetWindingRotations.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/SetWindingRotations.cs b/Software/Stubs Collection/stubs/SetWindingRotations.cs
new file mode 100644
index 000000000..e89bc04e5
--- /dev/null
+++ b/Software/Stubs Collection/stubs/SetWindingRotations.cs
@@ -0,0 +1,27 @@
+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)
+{
+
+// use this stub to set the number of thread rotation on each screw passage (bigger the number - slower the screw)
+ProgressRequest progressRequest = new ProgressRequest();
+//DO NOT CHANGE THIS LINE!!!!!!!!!!!!!!
+progressRequest.Amount = 0xF1; //DO NOT CHANGE THIS LINE!!!!!!!!!!!!!!
+//DO NOT CHANGE THIS LINE!!!!!!!!!!!!!!
+
+//set the number of rotations *1000
+progressRequest.Delay = 6123;
+
+ var response = stubManager.Run<ProgressResponse>(progressRequest);
+
+} \ No newline at end of file