Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB Simulink: Incomplete plot in scope

  1. Jan 7, 2012 #1


    User Avatar

    Often, after running a model in Simulink, the graph displayed in Scope is incomplete.. ie the initial portion of the graph is missing and only a part of the final portion remains.

    If I open the scope window as soon as the model starts running then I can see the graph being plotted but after a few s the initially plotted curve starts disappearing. Finally as the simulation ends, whatever was in the scope window lastly remains.

    The problem occurs only with signals of very high frequencies or complex systems. It doesn't occur with simple models. Is it some problem with the solvers? Is there some kind of memory limit on how much scope can display? pls help..
  2. jcsd
  3. Mar 21, 2012 #2

    by default the number of data points to be stored in a scope block is limited (for me it was 5000, I don't know if that is a standard value). If a simulation produces more data points, only the last 5000 can be displayed.
    To be able to display all data, hit the scope parameters button, go to the history pane and uncheck the point "Limit data points to last" or edit a higher value.

    Kind regards,

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook