From 602d0d5308876e02ae077b2d2032a4881a582378 Mon Sep 17 00:00:00 2001 From: Michal Buzik Date: Tue, 17 Dec 2024 09:59:31 +0100 Subject: [PATCH] Add logging for process start and measurement steps Updated `PMaxTestSeq` to include logging of process data at key steps: process start and measurement. Added TODO comments to review logging positions for alignment with expected workflow. --- TBF/Rig/TestMethods/PMaxTest/PMaxTestSeq.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/TBF/Rig/TestMethods/PMaxTest/PMaxTestSeq.cs b/TBF/Rig/TestMethods/PMaxTest/PMaxTestSeq.cs index 95f2bf1e6..d69d7f6a5 100644 --- a/TBF/Rig/TestMethods/PMaxTest/PMaxTestSeq.cs +++ b/TBF/Rig/TestMethods/PMaxTest/PMaxTestSeq.cs @@ -111,6 +111,10 @@ namespace TBF.Rig.TestMethods.PMaxTest Bridge.OnTestProgress(this, new TestProgressEventArgs(test, repetitionNr, Progress.FlowSetting)); //------------------------------------------------ + //TODO BUMI - check this possition for sstart logging - when finish remove this comment + //--- log start process in this section + LogProcessDataTestInfo(processDataLogger, test.Procedure.Name, test.Name); + float pumpPower = test.PumpPower; while (true) { @@ -179,6 +183,12 @@ namespace TBF.Rig.TestMethods.PMaxTest Bridge.OnActivity(this, Strings.Test_in_progress); Bridge.OnTestProgress(this, new TestProgressEventArgs(test, repetitionNr, Progress.Test)); //------------------------------------------------ + + //TODO BUMI - check if is ok possition to start logging - at last remove comment + //--- log start process in this section + LogProcessDataHeader(processDataLogger, "Start flow test"); + + State.Create(string.Format("{0}({1}) : Starting the test", test.Method, test.Name)) .AddOperation(checkUiOp) .AddOperations(readTempPressOps) @@ -200,6 +210,8 @@ namespace TBF.Rig.TestMethods.PMaxTest } while (e.Contains(Event.TimerBusy)); + LogProcessDataHeader(processDataLogger, "Measurement"); + /// /// PMaxTest completed ///