I have a signal being logged, which is an Accelerometer signal  multiplied by a constant number (which is the conversion from Volts to m/s^2). Frequently, I face the issue that when the signal is viewed on the Simulink Data Inspector it looks like a set of stairs/blocky signals. When I export this to the Workspace and plot it using MATLAB it looks fine. Why is this happening?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 1월 25일
편집: MathWorks Support Team 2025년 1월 31일

0 개 추천

By default, signals are plotted immediately in the SDI, as they are generated by the SLRT model running in real-time. The SLRT kernel stores the data in a network buffer to send to the desktop computer and plot, this buffer can be overrun, and data lost in the process. Regardless, the data is always saved and stored for later analysis, and all data is being passed between the model's component in real-time. This is why the signal looks different when plotted while simulating vs when plotted after loading to the Workspace. 
You can change the plotting mode in SDI for simulations. To read more about this, execute the following command in the MATLAB R2020a command window to access the release-specific documentation:
>> web(fullfile(docroot, 'xpc/ug/minimize-data-loss-with-simulation-data-inspector-buffered-mode.html'))
For information regarding the current release, please visit the following link:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by