Unable to load initial operating point after modifying blockparameters.

20 visualizaciones (últimos 30 días)
NV
NV el 27 de En. de 2025
Respondida: NV el 30 de En. de 2025
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 comentarios
Yifeng Tang
Yifeng Tang el 28 de En. de 2025
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 el 30 de En. de 2025
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.

Iniciar sesión para comentar.

Respuestas (1)

NV
NV el 30 de En. de 2025
The resistances need to be changed to run time parameters as follows: Manage Simscape Run-Time Parameters
This also works with fastrestart.

Categorías

Más información sobre Run-Time Parameters en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by