Reload/Update constants in Simulink

2 ビュー (過去 30 日間)
Frank
Frank 2011 年 12 月 28 日
回答済み: Slava Shougaev 2020 年 8 月 26 日
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

採用された回答

TAB
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.

その他の回答 (1 件)

Slava Shougaev
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).

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by