Diverter and start/stop valve switch time logging in ms, ver. 2.17.679
This commit is contained in:
+4
-2
@@ -509,7 +509,8 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
||||
int estimtdEndTime = StateMachine.Time + (int)test.TstTime;
|
||||
|
||||
/// 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)
|
||||
@@ -571,7 +572,8 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
||||
TestEndTime = DateTime.Now;
|
||||
|
||||
/// 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.Test_completed);
|
||||
|
||||
+4
-2
@@ -539,7 +539,8 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
|
||||
}
|
||||
while (!e.Contains(Event.ValvesSet));
|
||||
|
||||
switchTimeStart = cBrd.ValveOpenCloseTime / 1000.0f;
|
||||
switchTimeStart = 0.001f * cBrd.ValveOpenCloseTime;
|
||||
log.WarnFormat("Start valve switch time on test start = {0} ms", cBrd.ValveOpenCloseTime);
|
||||
|
||||
/// Measurement loop - preparation
|
||||
readRegistersOp = new Operations.ReadMoreRegistersOp(sensPath.RegisterReaders);
|
||||
@@ -648,7 +649,8 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
|
||||
}
|
||||
while (e.Contains(Event.ValvesBusy));
|
||||
|
||||
switchTimeEnd = cBrd.ValveOpenCloseTime / 1000.0f;
|
||||
switchTimeEnd = 0.001f * cBrd.ValveOpenCloseTime;
|
||||
log.WarnFormat("Start valve switch time on test end = {0} ms", cBrd.ValveOpenCloseTime);
|
||||
|
||||
State.Create(string.Format("{0}({1}) : Waiting before 2nd mass measurement", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
|
||||
+4
-4
@@ -597,8 +597,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
|
||||
ClearAllStatistics(StateMachine.Time);
|
||||
|
||||
/// Read the diverter switch time
|
||||
switchTimeStart = (float)cBrd.DivTime / 1000.0f;
|
||||
log.WarnFormat("Diverter switch time on test start = {0} ms", switchTimeStart);
|
||||
switchTimeStart = 0.001f * (float)cBrd.DivTime;
|
||||
log.WarnFormat("Diverter switch time on test start = {0} ms", cBrd.DivTime);
|
||||
|
||||
/// Measurement loop - begin
|
||||
State.Create(string.Format("{0}({1}) : Reading watermeters", test.Method, test.Name))
|
||||
@@ -724,8 +724,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
|
||||
else LogProcessDataHeaderHeatMeters(processDataLogger, "End mass");
|
||||
|
||||
/// Read the diverter switch time
|
||||
switchTimeEnd = (float)cBrd.DivTime / 1000.0f;
|
||||
log.WarnFormat("Diverter switch time on test end = {0} ms", switchTimeEnd);
|
||||
switchTimeEnd = 0.001f * (float)cBrd.DivTime;
|
||||
log.WarnFormat("Diverter switch time on test end = {0} ms", cBrd.DivTime);
|
||||
|
||||
State.Create(string.Format("{0}({1}) : Measuring the end mass", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
|
||||
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user