Why is Simulink Data Inspector not logging all time values for Simscape data?

I have enabled data logging for my Simscape model in MATLAB R2022a. However, after I view the signals/parameters in the Simulation Data Inspector, the plot is incomplete and some values are missing.
Why is Simulink Data Inspector not logging all time values for Simscape data?

 Accepted Answer

This is likely happening because the option "Limit data points to last" is checked somewhere in the Configuration Parameters. Please check the following in the model's Configuration Parameters
  • "Limit data points to last" Data Import/Export >Additional parameters > Save options is not checked
  • "Limit data points to last" in Simscape > Data logging is not checked
Launch the Simscape Results Explorer and compare the results to that of the Simulation Data Inspector. They should match for the same parameter if the "Limit data points to last" is not checked anywhere in the model's Configuration Parameters.

More Answers (0)

Products

Release

R2022a

Community Treasure Hunt

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

Start Hunting!