Reload/Update constants in Simulink
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I know that constants are probably named so by a reason, but is it possible to reload or update them during a running Simulink simulation?
Cheers, Frank
0 个评论
采纳的回答
TAB
2011-12-28
Your question is little bit unclear. If you want to change the value in a Constant Block, you can change it run time from its dialog box which appears by double click on it.
Also you can change these values from a m-file using set_param() function.
0 个评论
更多回答(1 个)
Slava Shougaev
2020-8-26
I had the same problem. I solved it just by replacing the 'Constant' block with an 'IC' block (Initial Conditions).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!