Downsampling of Signal in App Designer for Real-Time Execution (Speedgoat)
Show older comments
Hello all,
I have created a real-time capable model using Simulink Real-Time running on a real-time target machine from Speedgoat. For this I would like to create an additional GUI with the App Designer, in which among other things signals are displayed (UIAxes). The signals are streamed as follows:
% Code that executes after component creation
function startupFcn(app, varargin)
% create instrumentation object PS01
app.hInstPS01 = slrealtime.Instrument(app.mdl);
% connect signals to axes
app.hInstPS01.connectLine(app.UIAxes_PS01,'p_S1_bar');
app.hInstPS01.AxesTimeSpan = 10;
% InstrumentManager
InstrumentManager = slrealtime.ui.tool.InstrumentManager(app.UIFigure);
InstrumentManager.Instruments = app.hInstPS01;
end
The problem is that the model samples at 8kHz, as I would like to have the signals that high resolution in the logsout for post processing. But the app somehow doesn't manage such high sampling rates and is extremely sluggish/slow.
My question: Is there a possibility to sample the signals in the app only every e.g. 0.1s but still get the measured values with 8kHz in the logsout? Or does someone has any other tips how to accelerate the app?
Many thanks and greetings
Felix
Accepted Answer
More Answers (0)
Categories
Find more on System Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!