フィルターのクリア

How can i find input and output signal names for a 'line' in MATLAB?

36 ビュー (過去 30 日間)
Sai
Sai 2019 年 3 月 11 日
編集済み: Sai 2019 年 3 月 12 日
1.I found list of lines using command
L = find_system(gcs,'FindAll','on','type','line')
2.I found lines names using commands
for i =1:length(L)
if ~isempty(get(L(i),'Name'))
get(L(i),'Name')
end
end
Now, i want to know the input and output signal names for these lines. Here outputs of one subsystem is connected to input of other subsystems.
Is there any commands to do this?
(Or)
Is there any commands to find if is there any line connection between signals of two subsystems?
Please let me know if someone knows the commands.

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 3 月 11 日
It will be easier if you construct a simple model and run this example.
L = find_system(gcs,'FindAll','on','type','line');
k=1;
Src=getfullname(get(L(k),'SrcBlockHandle'))
Dst=getfullname(get(L(k),'DstBlockHandle'))
And there are other properties lick 'SrcPortHandle' and 'DstPortHandle'. Run get(L(k)) to see the list.
  1 件のコメント
Sai
Sai 2019 年 3 月 12 日
編集済み: Sai 2019 年 3 月 12 日
Thank you for helping me with the commands.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

タグ

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by