Unable to load initial operating point after modifying blockparameters.

조회 수: 12 (최근 30일)
NV
NV 2025년 1월 27일
답변: NV 2025년 1월 30일
Hi,
I need to run a large simulink model under varying operating conditions (resistances between nodes). I have been trying to save the operating state, changing block parameters (struct which has the resistance values), load the saved as initial state and continue. But I get the error:
'Simulink cannot load the initial operating point because the model, 'mymodel', was changed after the operating point was saved. Run the simulation again and resave the operating point.'
I understood that unless datatype, dimensions or connections change, this should not happen, but that is not the case here. I also disabled the block parameter changes, and then the model runs fine.
If this is impossible how can this be achieved? (i.e. block parameters defined via strcuts in the workplace needs to change at a particular time).
  댓글 수: 2
Yifeng Tang
Yifeng Tang 2025년 1월 28일
Is it possible to share a simple model to reproduce this issue? With some instructions on the steps probably.
My impression is that the Simscape operating point should be more flexible than that.
NV
NV 2025년 1월 30일
Hi Yifeng, thanks. I have resolved the issue - it was that the resistances needed to be set as run-time configurable (duh!!). Although that did make the solver a lot slower, this issue is resolved.

댓글을 달려면 로그인하십시오.

답변 (1개)

NV
NV 2025년 1월 30일
The resistances need to be changed to run time parameters as follows: Manage Simscape Run-Time Parameters
This also works with fastrestart.

카테고리

Help CenterFile Exchange에서 Run-Time Parameters에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by