aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-12-29 18:12:06 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-12-29 18:12:06 +0200
commit18ebd0eade87b8ba0b561b49d2f8819a16ad13e7 (patch)
tree197ebc11ca51529aa90c11e5a9d9b0204e807b1f /Software/Stubs Collection
parent589f4d3ecc2674b8633b0a0f7d1acd16be6e1fc0 (diff)
downloadTango-18ebd0eade87b8ba0b561b49d2f8819a16ad13e7.tar.gz
Tango-18ebd0eade87b8ba0b561b49d2f8819a16ad13e7.zip
small fixes, mock btsr params
Diffstat (limited to 'Software/Stubs Collection')
-rw-r--r--Software/Stubs Collection/stubs/ProcedureExample.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/ProcedureExample.cs b/Software/Stubs Collection/stubs/ProcedureExample.cs
new file mode 100644
index 000000000..18376a587
--- /dev/null
+++ b/Software/Stubs Collection/stubs/ProcedureExample.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)
+{
+
+
+ProcedureRequest procedureRequest = new ProcedureRequest();
+procedureRequest.Type = 1;
+procedureRequest.Timeout = 4000;
+procedureRequest.TestName = "BTSR Init";
+
+Single BTSRYarnType = new Single(); //Single is a float
+BTSRYarnType = 1;
+procedureRequest.Param.Add(BTSRYarnType);
+Single BTSRApplicationType = new Single(); //Single is a float
+BTSRApplicationType = 1;
+procedureRequest.Param.Add(BTSRApplicationType);
+Single feedingtension = new Single(); //Single is a float
+feedingtension = 1;
+procedureRequest.Param.Add(feedingtension);
+Single exittension = new Single(); //Single is a float
+exittension = 1;
+procedureRequest.Param.Add(exittension);
+Single tensionerror = new Single(); //Single is a float
+tensionerror = 1;
+procedureRequest.Param.Add(tensionerror);
+Single threadlengthfactor = new Single(); //Single is a float
+threadlengthfactor = 1;
+procedureRequest.Param.Add(threadlengthfactor);
+
+ var response = stubManager.Run<ProcedureResponse>(procedureRequest);
+
+} \ No newline at end of file