From c239c3df20a3f5c43014e8c4fcd023332f5d85d8 Mon Sep 17 00:00:00 2001 From: Tim Jarsky Date: Tue, 19 Nov 2024 13:24:48 -0800 Subject: [PATCH] fix generate como key --- Packages/MIES/MIES_SweepFormula_PSX.ipf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Packages/MIES/MIES_SweepFormula_PSX.ipf b/Packages/MIES/MIES_SweepFormula_PSX.ipf index 4388d4393a..c66a6eae7a 100644 --- a/Packages/MIES/MIES_SweepFormula_PSX.ipf +++ b/Packages/MIES/MIES_SweepFormula_PSX.ipf @@ -3072,11 +3072,14 @@ static Function/S PSX_GenerateComboKey(string graph, WAVE selectData, WAVE range // Introduced in 7e903ed8 (GetSweepSettingsTextWave: Add device as entry, 2023-01-03) device = GetLastSettingTextIndep(textualValues, sweepNo, "Device", DATA_ACQUISITION_MODE) + if(!isDataBrowser) + WAVE/T sweepMap = SB_GetSweepMap(graph) + endif + if(IsEmpty(device)) if(isDataBrowser) device = BSP_GetDevice(graph) else - WAVE/T sweepMap = SB_GetSweepMap(graph) device = sweepMap[mapIndex][%Device] endif endif