필터 지우기
필터 지우기

Connectivity between pair of Simulink blocks

조회 수: 3 (최근 30일)
Hayatullahi Adeyemo
Hayatullahi Adeyemo 2021년 3월 9일
답변: Pratyush Roy 2021년 4월 27일
Hello all,
Please I need a guide on how to identify connectivity between every pair of Simulink blocks.
I was only able to get blocks that are connected to every block using get_param
b = ('myBlock','PortConnectivity');
function.
I want a situation whereby I can iterate between every pair of blocks and identify if there is connectivity (TRUE) between them or not (FALSE).
Thanks
Hayat

답변 (1개)

Pratyush Roy
Pratyush Roy 2021년 4월 27일
Hi,
There is no direct way to obtain whether any two blocks are conencted or not in Simulink. As a workaround, you can consider creating an adjacency matrix which shows the connection between different blocks. The link here refers to an answer which shows how to create an adjacency matrix for Simulink blocks.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by