MATLAB Answers

How do I log my signals at a high rate, while maintaining good SDI performance using SLRT?

4 views (last 30 days)
I am using Simulink Data Inspector (SDI) to view 15 signals at 10kHz from Simulink Real-Time (SLRT). SDI works without issue for 100-200s after which it starts to have a 2-3s buffer. Is there any way that I can improve the performance of SDI without reducing my sample rate?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jul 2021
It is possible to work around this by using a lower sample rate for SDI, and adding File Log blocks to save the complete data for post-processing.
For example, you can change the "Logging Sample Time" of the signal to 0.1 so that you will see a lower rate signal in SDI, allowing SDI to run more smoothly during simulation. To edit the "Logging Sample Time", right-click the logging badge (wi-fi symbol) for the signal, and select "Properties".
At the same time, you can log the signals via a File Log block which will preserve the original sample time of the signal. More information on File Log blocks can be found at: 

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!