MATLAB Answers

How to Find out the port/signal name which is connected to a particular input in a block

조회 수: 2(최근 30일)
Vijith Natarajan
Vijith Natarajan 2021년 7월 11일
편집: Vijith Natarajan 2021년 7월 12일
Consider the below image, I would like to find out the port/Signal name connected to the input xIdx using commands.
Below image is the one level up subsystem of the above image, I would like to know the command that finds out the name 'Temp_inp'.

채택된 답변

Paul 2021년 7월 11일
Can be done in two steps:
signals = get_param(block,'InputSignalNames');
where "block" is the handle of the Inport inside the subsystem.

추가 답변(0개)




Community Treasure Hunt

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

Start Hunting!

Translated by