How can I find the names of the ports within a subsystem that an external block is connected to in Simulink through the MATLAB command line?

조회 수: 11 (최근 30일)
I have a model consisting of subsystems and library blocks. I have a block "Block1" connected to a subsystem "Subsystem1". I would like to know which port within "Subsystem1" is connected to the "Block1" input port through the MATLAB command line.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
There is no straightforward way to determine which port within a subsystem an input port or output port of an external block is connected to and what its name is.
The attached "dispconn.m" script file demonstrates how you can determine the ports connected at the input and output of the 'Actuator Model' block in the 'f14' demo model.
You need to make use of similar logic to determine the names of ports within blocks that are connected to any block in your model.

추가 답변 (0개)

카테고리

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

제품


릴리스

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by