Which are the parameters that can be updated in Simulink among different simulations with fast restart?

2 Ansichten (letzte 30 Tage)
Hi,
I have included the call of a Simulink model within a for loop. Along the iterations the values of the parameters that the Simulink model reads from the workspaces (base and/or model) to feed the logics embedded within it, change.
In particular, I am using SimEvents blocks and the parameters I referred to are read inside the Event actions or MATLAB Code sections. The problem is that if I use the Fast Restart, in order to reduce the computational burden, the model is not able to read the updated values of the parameters.
So, I am asking if it is possible to overcome this problem in some way or at least to know which are the parameters that it is possible to update with the Fast Restart enabled.

Akzeptierte Antwort

Pruthvi Muppavarapu
Pruthvi Muppavarapu am 14 Mai 2019
Hi Edoardo,
There are certain model parameters that need recompilation in order to be reflected, there is a limitation on parameters that can be changed for iterative simulation using "Fast Restart". The type of variables which are supported as run-time parameters with Fast Restart enabled are numeric, logical and "Simulink.Parameter" objects.
Please try tuning the parameters for Fast Restart using such variables. Hope this answers your query.
Regards,
Pruthvi

Weitere Antworten (0)

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by