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?

 Accepted Answer

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

5 Comments

Thanks. What about turning off 10 'To Workspace' blocks that are only useful when checking the model? Will that also reduce simulation time?
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
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
And another, even more useful: http://blogs.mathworks.com/seth/2010/10/28/tips-for-simulation-performance/

Sign in to comment.

More Answers (0)

Categories

Products

Asked:

K E
on 22 Feb 2012

Edited:

on 21 Oct 2013

Community Treasure Hunt

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

Start Hunting!