diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-07-28 13:23:06 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-07-28 13:23:06 +0300 |
| commit | 4c98dd0caac146c0c0e40ae7eff5b5e7d52e69cd (patch) | |
| tree | a0d495496c7e0c0cac8bd2a4d4421dd54fa91b98 /Software/Stubs Collection | |
| parent | a3f1ec8389cde87fff45dced9380f85d1b2424c6 (diff) | |
| download | Tango-4c98dd0caac146c0c0e40ae7eff5b5e7d52e69cd.tar.gz Tango-4c98dd0caac146c0c0e40ae7eff5b5e7d52e69cd.zip | |
build parameters stub - reading
Diffstat (limited to 'Software/Stubs Collection')
| -rw-r--r-- | Software/Stubs Collection/stubs/embeddedparametersbuild.cs | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Software/Stubs Collection/stubs/embeddedparametersbuild.cs b/Software/Stubs Collection/stubs/embeddedparametersbuild.cs index e9c2e235e..e9ee79111 100644 --- a/Software/Stubs Collection/stubs/embeddedparametersbuild.cs +++ b/Software/Stubs Collection/stubs/embeddedparametersbuild.cs @@ -24,7 +24,7 @@ ConfigurationParameters configurationParameters = new ConfigurationParameters(); configurationParameters.BreakSensorLimit = 10; //how many samples to collect in diagnostics before sending -configurationParameters.DiagnosticCollectionLimit = 2; +configurationParameters.DiagnosticCollectionLimit = 1; //how many consecutive readout before declaring DC over/underheat alarm configurationParameters.OverHeatCountLimit = 3; @@ -57,7 +57,7 @@ configurationParameters.DCHeatersUpperOperationLimit = 1005; configurationParameters.MidTankPressureCorrection = 0.0; //waste factor for intersegment pressure building -configurationParameters.DispenserPresegmentWFCF = 40; +configurationParameters.DispenserPresegmentWFCF = 80; //how much time to start the WFCF process (pressure buildup) before segment start configurationParameters.IDSPreSegmentWFCFTimeBeforeSegment = 1500; @@ -96,10 +96,14 @@ configurationParameters.GeneralParameters.Add(checkTamperAlarms); Double checkMotorAlarms = new Double(); checkMotorAlarms = 1.0; configurationParameters.GeneralParameters.Add(checkMotorAlarms); + Double WinderBackToBaseTime = new Double(); -WinderBackToBaseTime = 1.0; +WinderBackToBaseTime = 800.0; configurationParameters.GeneralParameters.Add(WinderBackToBaseTime); +Double DispenserInitialPressureSpeed = new Double(); +DispenserInitialPressureSpeed = 1000.0; +configurationParameters.GeneralParameters.Add(DispenserInitialPressureSpeed); File.WriteAllBytes("C:/temp/EmbParam.cfg",configurationParameters.ToBytes()); @@ -107,6 +111,12 @@ File.WriteAllBytes("C:/temp/EmbParam.cfg",configurationParameters.ToBytes()); byte[] fileBytes = File.ReadAllBytes("C:/temp/EmbParam.cfg"); +var config = ConfigurationParameters.Parser.ParseFrom(fileBytes); + +int percent = (int)(config.IDSCleaningStopBeforeSegmentTime); + stubManager.Write( percent+"% \n"); + + }
\ No newline at end of file |
