How to delete inports of a bus creator using script ?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, how can I delete inports of a bus creator using script ?
Case: I have a bus creator with 100 inports created and I want to delete from inport 96 to inport 100 using matlab script.
Any suggestion/feedback is appreciated.
댓글 수: 0
답변 (1개)
Fangjun Jiang
2022년 7월 12일
I tried this on a simple example with 8 inports.
%%
lh=get_param('PathToBusCreator','LineHandles');
in_lh=lh.Inport([6:8]);
bk_hdl=get_param(in_lh,'SrcBlockHandle')
delete_block(bk_hdl)
delete_line(in_lh)
set_param('PathToBusCreator','Inputs','5')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!