MATLAB Answers

0

How do I get the port names of a block based on their port handles?

Asked by Kulan Sinclair on 11 Jul 2018
Latest activity Answered by Christopher Wallace on 19 Jul 2018
I'm trying to find A,B,C,a,b or c from the port handle they are set from inside the mask but if I try something like
get_param(porthandle, 'name')
I get an empty string, but name is a valid object parameter.

  0 Comments

Sign in to comment.

1 Answer

Answer by Christopher Wallace on 19 Jul 2018

Select the subsystem and then use the following code:
find_system(gcb, 'SearchDepth', 1, 'BlockType', 'Inport')
find_system(gcb, 'SearchDepth', 1, 'BlockType', 'Outport')

  0 Comments

Sign in to comment.