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

12 ビュー (過去 30 日間)
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
Paul 2021 年 7 月 11 日
Can be done in two steps:
signals = get_param(block,'InputSignalNames');
signals{double(string(get_param(block,'Port')))}
where "block" is the handle of the Inport inside the subsystem.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by