MATLAB: Simulation Data Inspector plots are missing data

simulink

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?

Best Answer

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, check this link: