diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-19 11:19:07 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-19 11:19:07 +0200 |
| commit | e99efd9d9b7b67a76db82a9a40525f96bcf064c0 (patch) | |
| tree | bfd438e4031e207bc5c6e947db5d0e65708c0216 /Software/Stubs Collection/stubs/ThreadLoad.cs | |
| parent | d3ec73caf771511b361bf03e6247a9ff6052c12b (diff) | |
| download | Tango-e99efd9d9b7b67a76db82a9a40525f96bcf064c0.tar.gz Tango-e99efd9d9b7b67a76db82a9a40525f96bcf064c0.zip | |
Tech board and stubs for thread inserstion
Diffstat (limited to 'Software/Stubs Collection/stubs/ThreadLoad.cs')
| -rw-r--r-- | Software/Stubs Collection/stubs/ThreadLoad.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/ThreadLoad.cs b/Software/Stubs Collection/stubs/ThreadLoad.cs new file mode 100644 index 000000000..1b6437304 --- /dev/null +++ b/Software/Stubs Collection/stubs/ThreadLoad.cs @@ -0,0 +1,36 @@ +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) +{ + +StubHeatingTestRequest stubHeatingTestRequest = new StubHeatingTestRequest(); +stubHeatingTestRequest.DryerZone1Temp = 2; + +StubHeatingTestPollRequest stubHeatingTestPollRequest = new StubHeatingTestPollRequest(); + +var response = stubManager.Run<StubHeatingTestResponse>(stubHeatingTestRequest); + +uint TestResult = 0; + + while (TestResult<stubHeatingTestRequest.DryerZone1Temp+1) + { + Thread.Sleep(1000); + var response1 = stubManager.Run<StubHeatingTestPollResponse>(stubHeatingTestPollRequest); + TestResult = response1.Heater1Percentage; + stubManager.Write("\n Loading stage "); + stubManager.Write(TestResult); + } + + + +}
\ No newline at end of file |
