MATLAB: Are the mask parameter callbacks executed increased number of times in Simulink 7.1 (R2008a) than in Simulink 6.3 (R14SP3) leading to reduction in execution speed of the simulation

simulink

I have been using Simulink 6.3 (R14SP3) for development for a long time and have now started shifting towards Simulink 7.1 (R2008a). However, I observe considerable change in Simulink performance, especially around increased number of calls to mask parameter callbacks in Simulink 7.1 (R2008a) compared to Simulink 6.3 (R14SP3). What is the reason for this change in behavior that is leading to reduction in the execution speed of my simulation?

Best Answer

The determinism of the mask callback code was improved from Simulink 6.3 (R14SP3) to Simulink 7.1 (R2008a) and that leads to increased number of calls to the mask parameter callbacks during the initialization step of the simulation. It is due to this improved determinism of the mask parameter callbacks that users may experience reduction in the speed of their simulation.