MATLAB MATLAB Simulink: Incomplete plot in scope

AI Thread Summary
The discussion centers on an issue in Simulink where the Scope graph displays incomplete data after running a model, particularly with high-frequency signals or complex systems. Users notice that the initial portion of the graph disappears, leaving only part of the final data as the simulation concludes. The problem is attributed to a default limit on the number of data points the Scope can store, typically set at 5000. To resolve this, users can adjust the Scope parameters by accessing the history pane and either unchecking the "Limit data points to last" option or increasing the limit to accommodate more data points, allowing for a complete display of the simulation results.
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
Views
4K
Replies
2
Views
6K
Replies
4
Views
6K
Replies
1
Views
5K
Replies
4
Views
7K
Replies
2
Views
3K
Replies
2
Views
3K
Replies
1
Views
20K
Back
Top