title: Simulink get name/label of a port programmatically
body: <p>In my model I've a <code>Delay</code> block (see image below) connected with other blocks (not shown in the image). I have handles of each of the three ports of the <code>Delay</code> block, but I do not know which handle belongs to which port. Is there a programmatic way to get the "name" of the ports (e.g. Getting the values <code>u</code>, <code>d</code> and <code>x0</code>)? </p>
  
  <p>I have access to the block's handle and handles of the three ports as well.</p>
  
  <p>Please note that the labels <code>u</code>, <code>d</code> and <code>x0</code> as shown in the picture are provided by Simulink, not me. And I do not want to put custom labels/tags to the ports. </p>
  
  <p><a href="https://i.stack.imgur.com/EwPG9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EwPG9.png" alt="enter image description here"></a></p>