Elde interface : filters, pidCoef and shortPulses are set by SetFilterPidShortPulses( ) only.

This commit is contained in:
Milan Hanajik
2019-05-10 16:28:18 +02:00
parent 6b42dd091f
commit 7724c004a0
33 changed files with 288 additions and 306 deletions
@@ -28,8 +28,6 @@ namespace TBF.BenchControl.Elde
readonly int batchNr;
readonly string testName;
readonly int repetition;
readonly int[] filters;
readonly int shortPulses;
int counter;
bool cmdSent = false;
@@ -46,7 +44,7 @@ namespace TBF.BenchControl.Elde
/// <param name="refPulses">Test duration in number of reference flowmeter pulses</param>
/// <param name="filterConstant">Specifies filter for watermeter pulses</param>
public ReadDiverterTransitionOp(ControlBoardDev controlBoard, GenericDevices.IDiverter div, int runsCountWhenSendingCmd, int runsCountWhenReadingDiv,
FloatBox transitionTimeSec, Sequences.Statistics plotter, int batchNr, string testName, int repetition, int[] filters, int shortPulses)
FloatBox transitionTimeSec, Sequences.Statistics plotter, int batchNr, string testName, int repetition)
{
if (controlBoard == null) throw new ArgumentNullException("controlBoardDev");
if (runsCountWhenSendingCmd < 0) throw new ArgumentNullException("runsCountWhenSendingCmd");
@@ -62,8 +60,6 @@ namespace TBF.BenchControl.Elde
this.batchNr = batchNr;
this.testName = testName;
this.repetition = repetition;
this.filters = filters;
this.shortPulses = shortPulses;
samples = new float[SamplesCount];
@@ -136,7 +132,7 @@ namespace TBF.BenchControl.Elde
void SendCommand()
{
controlBoard.SyncRoute();
controlBoard.SendCommand(Command.ReadDivTransition, 0, controlBoard.Route, 0, 0, 0, filters, 0, shortPulses, StopDevs.None);
controlBoard.SendCommand(Command.ReadDivTransition, 0, controlBoard.Route, 0, 0, 0, StopDevs.None);
cmdSent = true;
}