From c6a2965faf151cd28d33bd0453969283b8fea3dc Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Wed, 23 Nov 2022 08:11:56 +0100 Subject: [PATCH] iPerlCommunication : Milestones reset on start of the session. --- TBF/Rig/GenericDevices/ISessionDataMngmnt.cs | 1 - .../iPerlCommunication/TestMethod.cs | 25 ++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/TBF/Rig/GenericDevices/ISessionDataMngmnt.cs b/TBF/Rig/GenericDevices/ISessionDataMngmnt.cs index ea39708e1..299fafb90 100644 --- a/TBF/Rig/GenericDevices/ISessionDataMngmnt.cs +++ b/TBF/Rig/GenericDevices/ISessionDataMngmnt.cs @@ -10,7 +10,6 @@ namespace TBF.Rig.GenericDevices /// /// Called when a new session is started /// - /// File name for the log file void StartSession(); /// diff --git a/TBF/Rig/TestMethods/iPerlCommunication/TestMethod.cs b/TBF/Rig/TestMethods/iPerlCommunication/TestMethod.cs index 880fcefff..32bbe10a6 100644 --- a/TBF/Rig/TestMethods/iPerlCommunication/TestMethod.cs +++ b/TBF/Rig/TestMethods/iPerlCommunication/TestMethod.cs @@ -12,7 +12,7 @@ using TBF.UiBridge; namespace TBF.Rig.TestMethods.iPerlCommunication { - public class TestMethod : ComponentBase, ISimultTestMethod, ISequenceCondition + public class TestMethod : ComponentBase, ISimultTestMethod, ISequenceCondition, ISessionDataMngmnt { private static readonly ILog log = LogManager.GetLogger(typeof(TestMethod)); protected static readonly ILog rfidDataLogger = LogManager.GetLogger("RfidData"); @@ -132,5 +132,28 @@ namespace TBF.Rig.TestMethods.iPerlCommunication { return (i >= 0 && i < (int)ConditionID.Count) ? sequenceConditionOps[i] : null; } + + + public void StartSession() + { + /// Clear milestones + if (IperlCommMilestone != null) + { + for (int i = 0; i < IperlCommMilestone.Length; i++) + { + IperlCommMilestone[i] = false; + } + } + } + + public void SaveMark(object o) + { + /// No marks + } + + public void EndSession() + { + /// Nothing at the end of session + } } }