From f9116f14aeae4a2b0f1a16ab4cef5be6251c597d Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Wed, 25 Feb 2026 17:40:59 +0100 Subject: [PATCH 1/3] TP_CreateOverrideResults: Create more rows by default This allows Auto TP during automated testing to run longer, as we use the rows to keep track of the current index in TP_AutoBaseline. --- Packages/MIES/MIES_TestPulse.ipf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/MIES/MIES_TestPulse.ipf b/Packages/MIES/MIES_TestPulse.ipf index b0af277eb1..2c74921987 100644 --- a/Packages/MIES/MIES_TestPulse.ipf +++ b/Packages/MIES/MIES_TestPulse.ipf @@ -415,7 +415,7 @@ static Function/WAVE TP_CreateOverrideResults(string device, variable type) switch(type) case TP_OVERRIDE_RESULTS_AUTO_TP: - numRows = MINIMUM_WAVE_SIZE + numRows = MINIMUM_WAVE_SIZE_LARGE numCols = NUM_HEADSTAGES numLayers = 3 labels = "Factor;Voltage;BaselineFitResult" From a40fe496e52b78a8f005be347d20e3505f6f0541 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Wed, 25 Feb 2026 17:44:54 +0100 Subject: [PATCH 2/3] AutoTP_ClampModeChange: Make it more robust By predefining some results we can have a deterministic result and also drop the IUTF_RETRY_FAILED flag. The return values are slightly changed but this does not matter for the test as we only want to test that changing the clamp mode during TP stops Auto TP. --- .../tests/HardwareBasic/UTF_AutoTestpulse.ipf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf b/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf index 381b34410b..b1332f8780 100644 --- a/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf +++ b/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf @@ -299,11 +299,17 @@ End static Function AutoTP_ClampModeChange_preAcq(string device) + WAVE overrideResults = MIES_TP#TP_CreateOverrideResults(device, TP_OVERRIDE_RESULTS_AUTO_TP) + + // 2 HS in IC mode intially + overrideResults[][0, 1][%Factor] = TP_BASELINE_RATIO_OPT + overrideResults[][0, 1][%Voltage] = 1 // V + overrideResults[][0, 1][%BaselineFitResult] = TP_BASELINE_FIT_RESULT_OK + PGC_SetAndActivateControl(device, "check_DataAcq_AutoTP", val = 1) End // UTF_TD_GENERATOR DataGenerators#DeviceNameGeneratorMD1 -// IUTF_RETRY_FAILED static Function AutoTP_ClampModeChange([string str]) [STRUCT DAQSettings s] = AutoTP_GetDAQSettings(str) @@ -317,13 +323,14 @@ static Function AutoTP_ClampModeChange_REENTRY([string str]) WAVE/WAVE entries = GetLBNSingleEntry_IGNORE(str) - CHECK_EQUAL_WAVES(entries[%autoTPQC], {0, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN}, mode = WAVE_DATA) + CHECK_EQUAL_WAVES(entries[%autoTPQC], {NaN, 0, NaN, NaN, NaN, NaN, NaN, NaN, NaN}, mode = WAVE_DATA) // AutoTP was enabled for both headstages before stopping the TP - CHECK_EQUAL_WAVES(entries[%autoTPEnable], {0, 0, NaN, NaN, NaN, NaN, NaN, NaN, NaN}, mode = WAVE_DATA) + // but now only HS1 is still in IC and trying + CHECK_EQUAL_WAVES(entries[%autoTPEnable], {1, 0, NaN, NaN, NaN, NaN, NaN, NaN, NaN}, mode = WAVE_DATA) WAVE TPSettings = GetTPSettings(str) WAVE autoTPEnable = LBN_GetNumericWave() autoTPEnable[] = TPSettings[%autoTPEnable][p] - CHECK_EQUAL_WAVES(autoTPEnable, {0, 0, 1, 1, 1, 1, 1, 1, NaN}, mode = WAVE_DATA) + CHECK_EQUAL_WAVES(autoTPEnable, {1, 0, 1, 1, 1, 1, 1, 1, NaN}, mode = WAVE_DATA) End From 18b242f19f7950ba471ca8395a98f7fe9991eead Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Wed, 25 Feb 2026 17:47:10 +0100 Subject: [PATCH 3/3] Tests/AutoTP_ClampModeChange: Stop it earlier --- Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf b/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf index b1332f8780..cec7176a53 100644 --- a/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf +++ b/Packages/tests/HardwareBasic/UTF_AutoTestpulse.ipf @@ -316,7 +316,7 @@ static Function AutoTP_ClampModeChange([string str]) AcquireData_NG(s, str) CtrlNamedBackGround ChangeClampModeToVC, start=(ticks + 60), period=60, proc=ClampModeDuringTP_IGNORE - CtrlNamedBackGround StopTPAfterSomeTime, start=(ticks + 600), period=60, proc=StopTP_IGNORE + CtrlNamedBackGround StopTPAfterSomeTime, start=(ticks + 120), period=60, proc=StopTP_IGNORE End static Function AutoTP_ClampModeChange_REENTRY([string str])