iPerlComm logging/display modifications: real PCB# shown, etc. Preparation for "Q2 corrected from ..." activity, version 1.5.99.

This commit is contained in:
Milan Hanajik
2015-08-25 11:47:21 +02:00
parent 08aed03cef
commit fcf4f6bdcf
4 changed files with 28 additions and 10 deletions
@@ -937,7 +937,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
(rdData != null) && (rdData.Length == 2) && (rdData[0] == q2CorrRFlow) && (rdData[1] == q2CorrLFlow))
{
error = CommErr.None;
resultStr = string.Format("Group={0}, Board={1}, Q2 correction factors set: RightFlow = {2}, LeftFlow = {3}",
resultStr = string.Format("Grp{0}/Brd{1} Q2 factors: R-flow={2}, L-flow={3}",
wm.Group, wm.MuxBoardNr, q2CorrRFlow, q2CorrLFlow);
rfidDataLogger.Warn(resultStr);
break;
@@ -1,6 +1,5 @@
///
/// Copyright (c) 2015 Sensus Metering Systems
/// Author: Milan Hanajík
///
using System;
using System.Collections.Generic;
@@ -59,7 +58,26 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
case Event.UiCmdStop: { retVal = Event.UiCmdStop; goto stopTest; }
}
if (testParams.Activity.Contains("Simulate"))
const string Q2correctedFromCmd = "Q2 corrected from ";
if (testParams.Activity.Contains(Q2correctedFromCmd))
{
string fromTestName = testParams.Activity.Substring(Q2correctedFromCmd.Length);
Entities.TestResult oriTestResult = null;
foreach (var tr in results)
{
if ((tr.TestName == fromTestName))
{
oriTestResult = tr;
break;
}
}
Entities.TestResult correctedTestResult = new Entities.TestResult(Entities.MetersKind.Single);
}
else if (testParams.Activity.Contains("Simulate"))
{
IList<Event> rList = new List<Event>(1);