How to get signal line and block which connects with trigger port in model by code???

4 ビュー (過去 30 日間)
galaxy
galaxy 2019 年 12 月 13 日
回答済み: stozaki 2020 年 1 月 9 日
Dear all,
As you know, we can find_system trigger_block by
trigger_blocks = find_system(system, 'FindAll','on',...
'LookUnderMasks', 'none',...
'RegExp','on', ...
'Type', 'block', ...
'BlockType', '^TriggerPort$');
But after that, I can not get LineHandles or PortConnectivity from trigger_blocks.
So, my question is how to get signal line and block which connects with trigger port by code???
Thank you,

回答 (1 件)

stozaki
stozaki 2020 年 1 月 9 日
Hello galaxy,
A Trigger block doesn't have a Trigger port. A Trigger port belongs to a subsystem block.
Please execute my sample script.
Regards,
stozaki

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by