MATLAB Answers

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

4 views (last 30 days)
galaxy
galaxy on 13 Dec 2019
Answered: stozaki on 9 Jan 2020
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,

  0 Comments

Sign in to comment.

Answers (1)

stozaki
stozaki on 9 Jan 2020
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

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by