MATLAB Simulink: Incomplete plot in scope

Click For Summary
SUMMARY

The discussion addresses the issue of incomplete plots in the Scope block of MATLAB Simulink when simulating models with high-frequency signals or complex systems. Users experience missing initial portions of the graph, with only the last segment remaining visible upon simulation completion. The limitation is attributed to the default setting of 5000 data points stored in the Scope block. To resolve this, users must adjust the Scope parameters by unchecking the "Limit data points to last" option or increasing the data point limit.

PREREQUISITES
  • Familiarity with MATLAB Simulink interface
  • Understanding of Scope block functionality in Simulink
  • Knowledge of simulation settings and parameters
  • Basic concepts of signal processing and data visualization
NEXT STEPS
  • Explore MATLAB Simulink documentation on Scope block settings
  • Learn how to configure simulation parameters for high-frequency signals
  • Investigate memory management techniques in Simulink
  • Study best practices for visualizing complex system simulations in MATLAB
USEFUL FOR

Engineers, researchers, and students working with MATLAB Simulink who need to visualize high-frequency signal simulations effectively.

sns
Messages
5
Reaction score
0
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..
 
Physics news on Phys.org
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
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K