WMPulses[], WMRefPulses[], WMTimes[] removed from SequenceBase, operations, etc., clean-up.
This commit is contained in:
@@ -261,10 +261,6 @@ namespace TBF.BenchControl.WaterMeters.iPerl
|
||||
public int TestStartTelegramIx;
|
||||
public int TestEndTelegramIx;
|
||||
|
||||
private Boxes.IntBox pulses;
|
||||
private Boxes.IntBox refPulses;
|
||||
private Boxes.DoubleBox timeSec;
|
||||
|
||||
|
||||
OptoTelegramRaw[] optoData;
|
||||
const int MaxOptoDataCount = 40000;
|
||||
@@ -397,55 +393,12 @@ namespace TBF.BenchControl.WaterMeters.iPerl
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulses">Reference to a variable for the water meter pulses</param>
|
||||
/// <returns>ReadWaterMeter instance reference casted to IOperaton</returns>
|
||||
public IOperation ReadRegisterOp(ref Boxes.IntBox pulses)
|
||||
public IOperation ReadRegisterOp()
|
||||
{
|
||||
this.pulses = pulses;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulses">Reference to a variable for the water meter pulses</param>
|
||||
/// <param name="refPulses">Reference to a variable for the related reference flowmeter pulses</param>
|
||||
/// <returns>Reference to operation object instance</returns>
|
||||
public IOperation ReadRegisterOp(ref Boxes.IntBox pulses, ref Boxes.IntBox refPulses)
|
||||
{
|
||||
this.pulses = pulses;
|
||||
this.refPulses = refPulses;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulses">Reference to a variable for the water meter pulses</param>
|
||||
/// <param name="timeSec">Reference to a variable for the related time in seconds</param>
|
||||
/// <returns>Reference to operation object instance</returns>
|
||||
public IOperation ReadRegisterOp(ref Boxes.IntBox pulses, ref Boxes.DoubleBox timeSec)
|
||||
{
|
||||
this.pulses = pulses;
|
||||
this.timeSec = timeSec;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Events: ReadReferenceDone, Error
|
||||
/// </summary>
|
||||
/// <param name="pulses">Reference to a variable for the water meter pulses</param>
|
||||
/// <param name="timeSec">Reference to a variable for the related time in seconds</param>
|
||||
/// <param name="refPulses">Reference to a variable for the water meter pulses</param>
|
||||
/// <returns>Reference to operation object instance</returns>
|
||||
public IOperation ReadRegisterOp(ref Boxes.IntBox pulses, ref Boxes.DoubleBox timeSec, ref Boxes.IntBox refPulses)
|
||||
{
|
||||
this.pulses = pulses;
|
||||
this.timeSec = timeSec;
|
||||
this.refPulses = refPulses;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clear data/counters related to a specific tests
|
||||
/// </summary>
|
||||
@@ -584,10 +537,6 @@ namespace TBF.BenchControl.WaterMeters.iPerl
|
||||
wmPulses = (int)(wmVolume * (double)PulsesPerLtr + 0.5);
|
||||
wmRefPulses = StateMachine.ControlBoard.EtPulses(0);
|
||||
wmTestTime = timestampSec - timestampSec0;
|
||||
|
||||
pulses.Val = wmPulses;
|
||||
if (refPulses != null) refPulses.Val = wmRefPulses;
|
||||
if (timeSec != null) timeSec.Val = wmTestTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user