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

    sns

    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
    Hi,

    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,

    jhin
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: MATLAB Simulink: Incomplete plot in scope
  1. Matlab and simulink (Replies: 3)

  2. Plotting in MATLAB (Replies: 8)

  3. Plotting with MATLAB (Replies: 1)

Loading...