iPerl opto data file name setting bug fix (FlyingStartSeq).
This commit is contained in:
@@ -140,6 +140,13 @@ namespace TBF.BenchControl.TestMethods.FlyingStart
|
||||
}
|
||||
while (!e.Contains(Event.MeasurementStarted));
|
||||
|
||||
|
||||
foreach (var rr in sensPath.RegisterReaders)
|
||||
{
|
||||
if (rr is WaterMeters.iPerl.WaterMeter) (rr as WaterMeters.iPerl.WaterMeter).TestName = test.Name;
|
||||
}
|
||||
|
||||
|
||||
/// Measurement loop - preparation
|
||||
readRegistersOp = new Operations.ReadMoreRegistersOp(sensPath.RegisterReaders, ref WMPulses, ref WMRefPulses);
|
||||
queryEnd1 = cBrd.QueryMeasurementEndOp();
|
||||
|
||||
@@ -202,10 +202,10 @@ namespace TBF.BenchControl.WaterMeters.iPerl
|
||||
return corrFactor;
|
||||
}
|
||||
|
||||
/// <summary> Name set by the test, to be used as a part og the opto-data log file name </summary>
|
||||
/// <summary> Name set by the test, to be used as a part of the opto-data log file name </summary>
|
||||
public string TestName;
|
||||
|
||||
/// <summary> Name set by the test, to be used as a part og the opto-data log file name </summary>
|
||||
/// <summary> Name set by the test, to be used as a part of the opto-data log file name </summary>
|
||||
public string BenchName;
|
||||
|
||||
///
|
||||
@@ -448,10 +448,10 @@ namespace TBF.BenchControl.WaterMeters.iPerl
|
||||
if (wmPosition.Length == 1) wmPosition = "0" + wmPosition;
|
||||
|
||||
string flowNr;
|
||||
if (TestName.ToLower().Contains("q1")) flowNr = "01";
|
||||
else if (TestName.ToLower().Contains("q2")) flowNr = "02";
|
||||
else if (TestName.ToLower().Contains("q3")) flowNr = "03";
|
||||
else if (TestName.ToLower().Contains("adj")) flowNr = "00";
|
||||
if (TestName != null && TestName.ToLower().Contains("q1")) flowNr = "01";
|
||||
else if (TestName != null && TestName.ToLower().Contains("q2")) flowNr = "02";
|
||||
else if (TestName != null && TestName.ToLower().Contains("q3")) flowNr = "03";
|
||||
else if (TestName != null && TestName.ToLower().Contains("adj")) flowNr = "00";
|
||||
else flowNr = "99";
|
||||
|
||||
optoDataLogFileName = string.Format("{0}_{1}_{2}_{3}.txt",
|
||||
|
||||
Reference in New Issue
Block a user