Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to get output port name for builtin Delay block?

1 Ansicht (letzte 30 Tage)
Danijel Domazet
Danijel Domazet am 27 Mai 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
simBlockH = get_param(target_module, 'Handle');
handles = find_system(simBlockH, 'LookUnderMasks', 'on', 'FollowLinks', 'on', 'SearchDepth', 1, 'BlockType', 'Outport');
portNames = cellstr(get_param(handles, 'Name'));
I am successfully using the above code to get the output port names for my blocks.
However, I tried the above code to get the output port name for a builtin Delay block I am using, but failed. How can I do that?

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by