From 4dc3c889d23eb627a6faabf6face81048764d167 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Tue, 6 Feb 2024 22:14:17 +0100 Subject: [PATCH] MIES: Skip instrumentation on some often called functions Close #1840. --- Packages/MIES/MIES_DAEphys_GuiState.ipf | 2 ++ Packages/MIES/MIES_GuiUtilities.ipf | 2 ++ Packages/MIES/MIES_Utilities.ipf | 6 ++++++ Packages/MIES/MIES_WaveDataFolderGetters.ipf | 6 ++++++ 4 files changed, 16 insertions(+) diff --git a/Packages/MIES/MIES_DAEphys_GuiState.ipf b/Packages/MIES/MIES_DAEphys_GuiState.ipf index 1d7a76f6c9..aaf0d2406a 100644 --- a/Packages/MIES/MIES_DAEphys_GuiState.ipf +++ b/Packages/MIES/MIES_DAEphys_GuiState.ipf @@ -175,6 +175,8 @@ End /// @param ctrl control name /// @param index [optional, default to NaN] Some control entries have multiple /// entries per headstage/channel/etc. +/// +/// UTF_NOINSTRUMENTATION Function DAG_GetNumericalValue(device, ctrl, [index]) string device, ctrl variable index diff --git a/Packages/MIES/MIES_GuiUtilities.ipf b/Packages/MIES/MIES_GuiUtilities.ipf index 97dd33c3b8..4e26b95e88 100644 --- a/Packages/MIES/MIES_GuiUtilities.ipf +++ b/Packages/MIES/MIES_GuiUtilities.ipf @@ -400,6 +400,8 @@ Function SetSetVariableLimits(win, Control, low, high, increment) End /// @brief Returns the contents of a SetVariable +/// +/// UTF_NOINSTRUMENTATION Function GetSetVariable(win, control) string win, control diff --git a/Packages/MIES/MIES_Utilities.ipf b/Packages/MIES/MIES_Utilities.ipf index 696f3ebcfe..538a4ef070 100644 --- a/Packages/MIES/MIES_Utilities.ipf +++ b/Packages/MIES/MIES_Utilities.ipf @@ -3342,6 +3342,8 @@ End /// @param var2 second variable /// @param tol [optional, defaults to 1e-8] tolerance /// @param strong_or_weak [optional, defaults to strong] type of condition, can be zero for weak or 1 for strong +/// +/// UTF_NOINSTRUMENTATION Function CheckIfClose(var1, var2, [tol, strong_or_weak]) variable var1, var2, tol, strong_or_weak @@ -4181,6 +4183,8 @@ End /// @brief Normalize the line endings in the given string to either classic Mac OS/Igor Pro EOLs (`\r`) /// or Unix EOLs (`\n`) +/// +/// UTF_NOINSTRUMENTATION threadsafe Function/S NormalizeToEOL(str, eol) string str, eol @@ -5797,6 +5801,8 @@ threadsafe Function/WAVE RemoveUnusedRows(WAVE wv) End /// @brief Check wether `val1` and `val2` are equal or both NaN +/// +/// UTF_NOINSTRUMENTATION threadsafe Function EqualValuesOrBothNaN(variable left, variable right) return (IsNaN(left) && IsNaN(right)) || (left == right) diff --git a/Packages/MIES/MIES_WaveDataFolderGetters.ipf b/Packages/MIES/MIES_WaveDataFolderGetters.ipf index 1a0a3114e3..c5d39c0e52 100644 --- a/Packages/MIES/MIES_WaveDataFolderGetters.ipf +++ b/Packages/MIES/MIES_WaveDataFolderGetters.ipf @@ -632,6 +632,8 @@ threadsafe Function/S GetDeviceTypePathAsString(deviceType) End /// @brief Return a datafolder reference to the device folder +/// +/// UTF_NOINSTRUMENTATION threadsafe Function/DF GetDevicePath(device) string device return createDFWithAllParents(GetDevicePathAsString(device)) @@ -5713,6 +5715,8 @@ End /// - 15: Internal number stored in control min_AsyncAD__RowNum. The minium value alarm trigger. /// - 16: Internal number stored in control max_AsyncAD_RowNum. The max value alarm trigger. /// - 17+: Unique controls +/// +/// UTF_NOINSTRUMENTATION Function/Wave GetDA_EphysGuiStateNum(device) string device @@ -5781,6 +5785,8 @@ End /// - 8: (Async) Title /// - 9: (Async) Unit /// - 10+: Unique controls (SetVariable and PopupMenu only) +/// +/// UTF_NOINSTRUMENTATION Function/Wave GetDA_EphysGuiStateTxT(device) string device