Using simulink SimState with different look up table data

3 vues (au cours des 30 derniers jours)
So my problem is that i have a simulink model with a slow start up and afterwards decent run time. I'd like to use the restart (load initial state) functionality. However when i change a lookup table I get the error that the model has changed and simulink cannot use the initial state.
The lookup table contains the data i wish to change for each loadcase. with zero values for the first 15 seconds, and im trying to restart after 10 second so the data should be the same.
Is there a workaround for this issue?
Or to rephrase, how to load simulation specific parameters into simulink whilst still being able to load an initial sim state?

Réponse acceptée

Thijs van Krimpen
Thijs van Krimpen le 11 Mai 2018
Eventually i found that loading data from a file rather than the workspace does not trigger the model change check.

Plus de réponses (1)

Mark McBroom
Mark McBroom le 7 Avr 2018
Try using fast restart. This option disables some consistency checks performed during model initialization and may let you get around this problem. Obviously the burden is on you to ensure that the changed lookup table values don't influence the saved simstate.

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by