Reload/Update constants in Simulink
조회 수: 2 (최근 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!