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;
|
int estimtdEndTime = StateMachine.Time + (int)test.TstTime;
|
||||||
|
|
||||||
/// Read the diverter switch 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
|
/// Measurement loop - begin
|
||||||
while (true)
|
while (true)
|
||||||
@@ -571,7 +572,8 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
|||||||
TestEndTime = DateTime.Now;
|
TestEndTime = DateTime.Now;
|
||||||
|
|
||||||
/// Read the diverter switch time
|
/// 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);
|
Bridge.OnActivity(this, Strings.Test_completed);
|
||||||
|
|||||||
+4
-2
@@ -539,7 +539,8 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
|
|||||||
}
|
}
|
||||||
while (!e.Contains(Event.ValvesSet));
|
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
|
/// Measurement loop - preparation
|
||||||
readRegistersOp = new Operations.ReadMoreRegistersOp(sensPath.RegisterReaders);
|
readRegistersOp = new Operations.ReadMoreRegistersOp(sensPath.RegisterReaders);
|
||||||
@@ -648,7 +649,8 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
|
|||||||
}
|
}
|
||||||
while (e.Contains(Event.ValvesBusy));
|
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))
|
State.Create(string.Format("{0}({1}) : Waiting before 2nd mass measurement", test.Method, test.Name))
|
||||||
.AddOperation(checkUiOp)
|
.AddOperation(checkUiOp)
|
||||||
|
|||||||
+4
-4
@@ -597,8 +597,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
|
|||||||
ClearAllStatistics(StateMachine.Time);
|
ClearAllStatistics(StateMachine.Time);
|
||||||
|
|
||||||
/// Read the diverter switch 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", switchTimeStart);
|
log.WarnFormat("Diverter switch time on test start = {0} ms", cBrd.DivTime);
|
||||||
|
|
||||||
/// Measurement loop - begin
|
/// Measurement loop - begin
|
||||||
State.Create(string.Format("{0}({1}) : Reading watermeters", test.Method, test.Name))
|
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");
|
else LogProcessDataHeaderHeatMeters(processDataLogger, "End mass");
|
||||||
|
|
||||||
/// Read the diverter switch time
|
/// 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", switchTimeEnd);
|
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))
|
State.Create(string.Format("{0}({1}) : Measuring the end mass", test.Method, test.Name))
|
||||||
.AddOperation(checkUiOp)
|
.AddOperation(checkUiOp)
|
||||||
|
|||||||
+4
-2
@@ -223,7 +223,8 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
|
|||||||
ClearAllStatistics(StateMachine.Time);
|
ClearAllStatistics(StateMachine.Time);
|
||||||
|
|
||||||
/// Read the diverter switch 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
|
/// Measurement loop - begin
|
||||||
while (true)
|
while (true)
|
||||||
@@ -271,7 +272,8 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
|
|||||||
while (!e.Contains(Event.TimerExpired));
|
while (!e.Contains(Event.TimerExpired));
|
||||||
|
|
||||||
/// Read the diverter switch time
|
/// 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);
|
Bridge.OnActivity(this, Strings.Measuring_the_weight);
|
||||||
|
|||||||
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("2.17.678.1")]
|
[assembly: AssemblyVersion("2.17.679.1")]
|
||||||
[assembly: AssemblyFileVersion("2.17.678.1")]
|
[assembly: AssemblyFileVersion("2.17.679.1")]
|
||||||
|
|||||||
Reference in New Issue
Block a user