Simulink scope does not show the graph
54 views (last 30 days)
Show older comments
I'm using the Simscape Electrical to simulate a power grid. Now I've come across this problem when I run the model: there is no graph in any of the scopes I'm using (there are several scopes in the model). This model is almost an exact copy of a different model in which the scopes appeared just as they should. I have already tried the following tricks without any luck:
- check that the scope is actually connected to the measurement block (obviously!)
- limit data points to last 5000, 10000, 100000 etc.
- scale X & Y axes limits (this doesn't do anything since the scope shows no graph whatsoever)
- zoom in & out
- save, quit, and restart the model
- edit the model using the other properly functioning model as a template
- summon the Dark Lord of Matlab...
The Simulink model is completely useless without the graphs and the problem seems quite absurd since the other model, which is almost identical, works just fine. Please, help.
2 Comments
Benjamin Thompson
on 10 Feb 2022
The Dark Lord of MATLAB would like to summon a posting of the model in question... :)
Answers (1)
Sabin
on 21 Dec 2022
As we don’t have access to full model is not easy to investigate what the issue might be. First things are indeed to uncheck the ‘Limit data points to last’ and check the zoom scale. As you already did this, next thing I would check the model for warnings/errors. If we have a division by zero somewhere and the signal value is NaN then nothing would be displayed in the scope. You can also log signals to Simulink Data Inspector as an alternative to Scopes . See Scope block and Simulink Data Inspector documentation for more insights.
0 Comments
See Also
Categories
Find more on Data Logging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!