Using simulink SimState with different look up table data

4 views (last 30 days)
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?

Accepted Answer

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

More Answers (1)

Mark McBroom
Mark McBroom on 7 Apr 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.

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!