From 0a8a3e92d3aa1228cf44a1afc066c32be40417e4 Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Mon, 30 Sep 2024 11:31:03 +0200 Subject: [PATCH 1/3] Always check if SLRT target support package is installed. --- toolbox/src/bossdevice.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/toolbox/src/bossdevice.m b/toolbox/src/bossdevice.m index 186d837..2f1002e 100644 --- a/toolbox/src/bossdevice.m +++ b/toolbox/src/bossdevice.m @@ -79,9 +79,7 @@ function initOscillationProps(obj) end % Verify if SLRT Target Support Package is installed - if ~batchStartupOptionUsed - bossapi.tg.checkSLRTSupportPkg; - end + bossapi.tg.checkSLRTSupportPkg; % Get bossdevice API toolbox path obj.toolboxPath = fileparts(fileparts(which(mfilename))); From 0749a28d209e56671cc69c23956f7003e0f2f830 Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Mon, 30 Sep 2024 13:12:53 +0200 Subject: [PATCH 2/3] Revert "Always check if SLRT target support package is installed." This reverts commit 0a8a3e92d3aa1228cf44a1afc066c32be40417e4. --- toolbox/src/bossdevice.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolbox/src/bossdevice.m b/toolbox/src/bossdevice.m index 2f1002e..186d837 100644 --- a/toolbox/src/bossdevice.m +++ b/toolbox/src/bossdevice.m @@ -79,7 +79,9 @@ function initOscillationProps(obj) end % Verify if SLRT Target Support Package is installed - bossapi.tg.checkSLRTSupportPkg; + if ~batchStartupOptionUsed + bossapi.tg.checkSLRTSupportPkg; + end % Get bossdevice API toolbox path obj.toolboxPath = fileparts(fileparts(which(mfilename))); From 7453d7b7bc6b3610d781e6c67a14a710d7a56019 Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Mon, 30 Sep 2024 13:15:19 +0200 Subject: [PATCH 3/3] Adding workaround for bugs in MATLAB. --- toolbox/src/bossdevice.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/src/bossdevice.m b/toolbox/src/bossdevice.m index 186d837..8a03735 100644 --- a/toolbox/src/bossdevice.m +++ b/toolbox/src/bossdevice.m @@ -79,7 +79,7 @@ function initOscillationProps(obj) end % Verify if SLRT Target Support Package is installed - if ~batchStartupOptionUsed + if ~batchStartupOptionUsed && isMATLABReleaseOlderThan('R2024b') % Should run always but using if due to two MATLAB bugs bossapi.tg.checkSLRTSupportPkg; end