diff options
| author | Shai Frieder <Shai.Frieder@twine-s.com> | 2020-02-10 17:49:50 +0200 |
|---|---|---|
| committer | Shai Frieder <Shai.Frieder@twine-s.com> | 2020-02-10 17:49:50 +0200 |
| commit | c7fcd93f517b23bcbb0575e6a4f279d56808d8c4 (patch) | |
| tree | 25b034342a3d550f15b8ed04ca5ea20bf36fc2be /Software/Stubs Collection | |
| parent | 5078871e4c439aa0c18cb91238f1dd33c1b243cd (diff) | |
| download | Tango-c7fcd93f517b23bcbb0575e6a4f279d56808d8c4.tar.gz Tango-c7fcd93f517b23bcbb0575e6a4f279d56808d8c4.zip | |
add WHS_Set_Blower_Control_Closed_Loop()
add stub to set the rehostat(gass sensor)
add detect newWHS card by I2C command to EEPROM
Diffstat (limited to 'Software/Stubs Collection')
| -rw-r--r-- | Software/Stubs Collection/stubs/newWHS/Rehostat.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/newWHS/Rehostat.cs b/Software/Stubs Collection/stubs/newWHS/Rehostat.cs new file mode 100644 index 000000000..142c1597d --- /dev/null +++ b/Software/Stubs Collection/stubs/newWHS/Rehostat.cs @@ -0,0 +1,31 @@ +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) +{ +// Request ---- +// Int32 : Amount +// Int32 : Delay + +// Response ---- +// Double : Progress + + +stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EB, 0x300); //set rehostat value=0x300 +stubManager.WriteLine("First response received"); +Thread.Sleep(1000); //Sleep for 1000 milli. +var response6 = stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EA, 5); // get GAS_OUT +stubManager.WriteLine("Second response received"); + + stubManager.WriteLineHex(response6.Progress, 4); + +}
\ No newline at end of file |
