Comments added to ctlBatch
This commit is contained in:
@@ -218,14 +218,14 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
//Wait For Caller when every thing is setup
|
||||
break;
|
||||
case BatchState.ReadyForMesuremnt:
|
||||
//Wait for caller to start Mesurment
|
||||
//Wait for caller to start Measurement
|
||||
break;
|
||||
case BatchState.StartMesurement:
|
||||
_currentState = StartMeasurement_Internal() ? BatchState.MeasurementActive : BatchState.Error;
|
||||
break;
|
||||
|
||||
case BatchState.MeasurementActive:
|
||||
// wait for singal that the messuremnt can be stopped
|
||||
// wait for signal that the measurement can be stopped
|
||||
break;
|
||||
|
||||
case BatchState.StopMesurement:
|
||||
@@ -1152,19 +1152,26 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
var MeterReadyForTest = false;
|
||||
while (i >= 0)
|
||||
{
|
||||
new System.Threading.ManualResetEvent(false).WaitOne(i * 2000);
|
||||
new ManualResetEvent(false).WaitOne(i * 2000);
|
||||
try
|
||||
{
|
||||
var r = ((GenesisMeter)meter).GetMainMeasurementResult(null, null, true);
|
||||
i -= sleepTimeS;
|
||||
|
||||
//when Start and Stop Record have diffrent Volumes the meter is ready for test
|
||||
//when Start and Stop Record have different Volumes the meter is ready for test,
|
||||
//if a measurement hasn't finished, the StopRecord is an intermediate record, as
|
||||
//this will be used for intermediate tolerance calculation.
|
||||
//ReSharper disable once CompareOfFloatsByEqualityOperator as the rounding will take place in the
|
||||
//Cordonel and only an unequally value needs to be detected
|
||||
if (r.DutStartRecord.GetVolumeCm() != r.DutStopRecord.GetVolumeCm())
|
||||
{
|
||||
_logger.Info($" Meter {meter.Slot} Meter has progress {r.DutVolumeCm}");
|
||||
TryInvoke(new Action(() =>
|
||||
{
|
||||
// updateCell($"Status", meter.Slot, $"Zählerstand wechsel erfasst Von:{r.DutStartRecord.GetVolumeCm()} Auf: {r.DutStopRecord.GetVolumeCm()}", Color.LimeGreen);
|
||||
//updateCell("Status", meter.Slot, "Zählerstandwechsel erfasst " +
|
||||
// $"Von: {r.DutStartRecord.GetVolumeCm()} " +
|
||||
// $"Auf: {r.DutStopRecord.GetVolumeCm()}",
|
||||
// Color.LimeGreen);
|
||||
}));
|
||||
MeterReadyForTest = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user