iPerlCommunication : Milestones reset on start of the session.

This commit is contained in:
Milan Hanajik 2022-11-23 08:11:56 +01:00
parent 77c713425a
commit c6a2965faf
2 changed files with 24 additions and 2 deletions

View File

@ -10,7 +10,6 @@ namespace TBF.Rig.GenericDevices
/// <summary>
/// Called when a new session is started
/// </summary>
/// <param name="dataStreamFileName">File name for the log file</param>
void StartSession();
/// <summary>

View File

@ -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
}
}
}