Diverter and start/stop valve switch time logging in ms, ver. 2.17.679

This commit is contained in:
Milan Hanajik
2017-09-28 17:11:41 +02:00
parent b54f938bd5
commit 9fa025caa4
5 changed files with 18 additions and 12 deletions
@@ -223,7 +223,8 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
ClearAllStatistics(StateMachine.Time);
/// Read the diverter switch time
switchTimeStart = (float)cBrd.DivTime / 1000.0f;
switchTimeStart = 0.001f * (float)cBrd.DivTime;
log.WarnFormat("Diverter switch time on test start = {0} ms", cBrd.DivTime);
/// Measurement loop - begin
while (true)
@@ -271,7 +272,8 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
while (!e.Contains(Event.TimerExpired));
/// Read the diverter switch time
switchTimeEnd = (float)cBrd.DivTime / 1000.0f;
switchTimeEnd = 0.001f * (float)cBrd.DivTime;
log.WarnFormat("Diverter switch time on test end = {0} ms", cBrd.DivTime);
//------------------------------------------------
Bridge.OnActivity(this, Strings.Measuring_the_weight);