Why does the port_label function on my mask not work as expected for physical signals in Simulink 7.4(R2009b)?
6 views (last 30 days)
Show older comments
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')
Accepted Answer
MathWorks Support Team
on 24 Nov 2009
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');
0 Comments
More Answers (0)
See Also
Categories
Find more on Create Block Masks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!