フィルターのクリア

How do I iterate through duplicated inports in MATLAB 2013b?

9 ビュー (過去 30 日間)
FalMat
FalMat 2017 年 10 月 20 日
回答済み: FalMat 2017 年 10 月 24 日
Dear Community,
I am creating a SIMULINK-model with MATLAB 2013b. I know how to iterate through inports of a block: %returns a handle for every inport all_system_inports = find_system('my_model','FindAll','On','BlockType','Inport');
If I add an inport by duplicating an existing inport and connect it to a block, the duplicated one is not listed in all_system_inports. My guess is, that a duplicated inport is not a real inport, but only a link.
I tried something like: get(all_system_inports,'LinkStatus'), but it doesn't work.
Really, how do I find duplicated inports?
Thank you in advance.

採用された回答

goerk
goerk 2017 年 10 月 23 日
The "links" are so called Inport-Shadows
inportShadows = find_system('my_model', 'FindAll', 'on', 'BlockType', 'InportShadow');
will return the "dublicated" Inports.

その他の回答 (1 件)

FalMat
FalMat 2017 年 10 月 24 日
Thanks a lot goerk. It worked. I'm looking forward to support you too.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by