Why can I break Simulink library links by right-clicking in the model, but can't programmatically?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello everyone,
I am working on a Simulink model with libraries and links.
In order to activate signal logging and save signals with a name that I set programmatically, the links should be broken.
I can do it by right-clicking the locker symbol and selecting "brake links", but I can't do it programmatically.
In fact get_param (block_path, 'LinkStatus') returns 'implicit', and I can't execute the command set_param(block_path, 'LinkStatus', 'inactive').
What am I missing? Thanks for your support!
댓글 수: 0
답변 (1개)
Fangjun Jiang
2023년 3월 10일
"Implicit" means Block resides in library block and is itself not a link to a library block. Suppose that A is a link to a subsystem in a library that contains the Gain block. If you open A and select the Gain block, get_param(gcb, 'LinkStatus') returns implicit.
Specify the linked library block,
to disable the link: set_param(block_path, 'LinkStatus', 'inactive')
to break the link: set_param(block_path, 'LinkStatus', 'none')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Custom Libraries에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!