Simulink cannot load the initial SimState

7 ビュー (過去 30 日間)
Felix
Felix 2015 年 3 月 9 日
回答済み: Tian Zhang 2018 年 4 月 12 日
Hi everybody,
I've got a problem using SimState. My aim is to run a simulation stepwise to be able to run various simulations for the next timestep with different parameters.
My problem is, that Simulink just throws the error "Simulink cannot load the initial SimState because the model, ''model_name', was changed after the SimState was saved. Run the simulation again and resave the SimState."
I already compared the checksum between two simulations regarding (<http://de.mathworks.com/help/simulink/slref/simulink.blockdiagram.getchecksum.html>, and the "slAccelDemoWhyRebuild"-example).
Seems that there are no differences in the checksum and also the models aren't rebuilt each restart of the simulation. I'm using Matlab R2014a, fixedStepDiscrete-Solver and the "normal"-running mode. Do you have an idea how to solve this issue?
Thanks a lot! Felix

採用された回答

Felix
Felix 2015 年 3 月 25 日
I could establish the problem by now. Matlab 2015a was able to show the differences in the checksum caused by the integration method of the used discrete-time integrators.
The "Initial condition setting" has to be set to "State (most efficient)".
  1 件のコメント
Vincen Lee
Vincen Lee 2016 年 12 月 23 日
I need help. Could you please tell me where can I find "Initial condition setting" item? Thanks a lot.

サインインしてコメントする。

その他の回答 (1 件)

Tian Zhang
Tian Zhang 2018 年 4 月 12 日
Have you sloved this problem?I have this problem too in my model

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by