MATLAB: Does the port_label function on the mask not work as expected for physical signals in Simulink 7.4(R2009b)

connectioninputlconnmaskoutputphysicalport_labelrconnsimulink

I have created a mask on a subsystem that contains physical connections. I have tried to use the following syntax to change the label of my ports on the mask, but it does not work as it does for Simulink signals:
port_label('input', 1, 'my_label')

Best Answer

This is expected behavior. In order to apply labels to physical connections you have to use 'lconn' or 'rconn' as the port_type. 'input' and 'output' can only be used for Simulink signals.
Example:-
port_label('rconn', 1, 'my_label');