MATLAB: Faster Simulink if scopes are switched off

scopesimulink

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?

Best Answer

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