Skip to content

Commit 304669b

Browse files
committed
Use Streaming Instrumentation Utilities for Simulink Real-Time as toolbox dependency.
Update function calls accordingly.
1 parent 71677d5 commit 304669b

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

buildUtilities/releaseTask.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
"LatestVersion","2.100.0", ...
5555
"DownloadURL","");
5656

57+
toolboxOptions.RequiredAddons(end+1) = ...
58+
struct("Name","Streaming Instrumentation Utilities for Simulink Real-Time", ...
59+
"Identifier","d5ede540-486c-4f7c-8035-28d09ece2083", ...
60+
"EarliestVersion","1.0.0", ...
61+
"LatestVersion","1.100.0", ...
62+
"DownloadURL","");
63+
5764
% Required Additional Software
5865
% TODO: Automate download and installation of bossdevice firmware. DownloadURL must point to a ZIP file (MLDATX firmware fiel) in the downloads section of sync2brain
5966
% toolboxOptions.RequiredAdditionalSoftware = ...

toolbox/dependencies/bossapi

toolbox/src/bossdevice.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ function restoreInstrument(obj)
610610
end
611611

612612
% Initializie streamingAsyncBuffer object
613-
bufObj = slrtCustomInst.streamingAsyncBuffer(signalName,'',bufferLen,...
613+
bufObj = slrtStreamingUtils.streamingAsyncBuffer(signalName,'',bufferLen,...
614614
'AppName',obj.firmwareFilepath,'ArrayIndex',options.ArrayIndex,'SignalProps',options.SignalProps);
615615
end
616616

@@ -628,7 +628,7 @@ function restoreInstrument(obj)
628628

629629
bufOptions = struct2pairs(options);
630630

631-
bufObj = slrtCustomInst.triggeredBuffer(obj.targetObject, obj.firmwareFilepath,...
631+
bufObj = slrtStreamingUtils.triggeredBuffer(obj.targetObject, obj.firmwareFilepath,...
632632
signalName, triggerSignal, triggerCondition, preTrigger_ms, postTrigger_ms, bufOptions{:});
633633
end
634634

0 commit comments

Comments
 (0)