How to refresh library blocks programmatically?
조회 수: 22 (최근 30일)
이전 댓글 표시
I'd like to run in a script the equivalent of control+K
Thanks
댓글 수: 0
채택된 답변
TAB
2012년 6월 7일
AFAIK, there no specific command for Ctrk+K (Referesh model block). But, library block can also be refreshed using update diagram (ctrl+D). Update diagram can be issued using command
>> set_param('YourModel','SimulationCommand','update');
Just for information, in newer version of simulink, library block and model reference block refreshes automatically. See this blog.
댓글 수: 0
추가 답변 (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!