Which are the parameters that can be updated in Simulink among different simulations with fast restart?
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Pruthvi Muppavarapu
2019-5-14
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
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!