Faster Simulink if scopes are switched off?

My questions concerns a Simulink model that is still being refined. The model contains >20 scopes to make it easy to spot troublesome behavior. When I perform many runs of the model from a script, the scopes are not useful. Should I put them behind a switch (iDebug=1) so that they only execute when the model implementation is being checked? Will 'turning off' the scopes reduce the simulation time?

 Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 22 Feb. 2012

1 Stimme

Will 'turning off' the scopes reduce the simulation time?
Yes.

5 Kommentare

K E
K E am 22 Feb. 2012
Thanks. What about turning off 10 'To Workspace' blocks that are only useful when checking the model? Will that also reduce simulation time?
Sean de Wolski
Sean de Wolski am 22 Feb. 2012
yup.
K E
K E am 22 Feb. 2012
In case it helps someone else, here is a list of some things that can slow the execution of a Simulink model, http://www.mathworks.com/support/tech-notes/1800/1806.html
K E
K E am 27 Feb. 2012
And here is another even more useful list of what to avoid for faster run times, http://www.mathworks.com/matlabcentral/newsreader/view_thread/153867
K E
K E am 6 Mär. 2012
And another, even more useful: http://blogs.mathworks.com/seth/2010/10/28/tips-for-simulation-performance/

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by