inputブロックと​、outputブロッ​クの伝搬信号を調べる

14 ビュー (過去 30 日間)
Mamoru Mabuchi
Mamoru Mabuchi 2022 年 9 月 22 日
回答済み: Toshinobu Shintai 2022 年 9 月 22 日
InputブロックとOutputブロックを指定して、そこから伝搬信号名を調べたいです。
Inputブロックから出力する伝搬信号名は、下記のようにすれば得ることができました。
Ph = get_param(gcb,‘PortHandles’) (gcbinputブロック)
get_param(Ph.Outport,'PropagatedSignals')
一方のOutputブロックに入力する伝搬信号名の抽出の仕方がわかりません。
Outputブロックの伝搬信号の調べ方を教えていただけますか

回答 (1 件)

Toshinobu Shintai
Toshinobu Shintai 2022 年 9 月 22 日
接続元のポートハンドルから調べるしかないかと思います。
Ph = get_param(Output_block_name, 'PortHandles');
line_handle = get_param(Ph.Inport(1), 'Line');
outport_handle = get_param(line_handle, 'SrcPortHandle');
name = get_param(outport_handle, 'PropagatedSignals');

カテゴリ

Help Center および File Exchangeモデル化 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!