aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-05-03 09:52:00 +0300
committerAvi Levkovich <avi@twine-s.com>2020-05-03 09:52:00 +0300
commit8217a6b39954e290b7f0791404d88403d069a37c (patch)
tree2852608bb01ae3aa07dc4c7f400d9187044d7d1e
parent064aaf993d9c38a64f75ea0abf79ced58bdb0741 (diff)
downloadTango-8217a6b39954e290b7f0791404d88403d069a37c.tar.gz
Tango-8217a6b39954e290b7f0791404d88403d069a37c.zip
Add stub for testing whs comunication
-rw-r--r--Software/Stubs Collection/stubs/test_uart3_whs.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/test_uart3_whs.cs b/Software/Stubs Collection/stubs/test_uart3_whs.cs
new file mode 100644
index 000000000..b36179d8c
--- /dev/null
+++ b/Software/Stubs Collection/stubs/test_uart3_whs.cs
@@ -0,0 +1,24 @@
+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)
+{
+
+ stubManager.Run<ProgressResponse>("ProgressRequest" ,0xb05, 0); //init
+
+ Thread.Sleep(3000);
+
+ for(int i=0;i<1;i++)
+ {
+ var response = stubManager.Run<ProgressResponse>("ProgressRequest" ,0xb05, 1); // - Test_Reading_Shinko_Request_PV
+ }
+} \ No newline at end of file