Prevent update simulink diagram

How to perform a batch of simulink diagram simulations while preventing the diagram being updated each time?

 Accepted Answer

Sebastian Castro
Sebastian Castro on 5 Feb 2015
As long as you're not making structural changes to the model or changing non-tunable parameters (i.e., changes that require the model to update), the update process should be a lot quicker.
Maybe it would help to know what kinds of modifications the script is making, and we can see if there's a more efficient way to get around this?
- Sebastian

2 Comments

Sebastian,
Until now the script, nor any callbacks (there are none) are making any modifications.
Can it be that the use of approximately 40 reference models including 60 Matlab Functions in total (resulting in 60 .mexw64 files) takes a lot of time to check for update?
Would it help using library links in stead of reference systems?
Regards,
Wim.
Are you using Rapid Accelerator modes? You can speed things up by turning off the up-to-date checks:
sim(model,'SimulationMode', 'rapid','RapidAcceleratorUpToDateCheck', 'off');
Pages in the documentation like this one and this one talk more about that.
Another thing that may help is changing the Rebuild setting to "If any changes in known dependencies".
- Sebstian

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink 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!