How can I change the IO port position on a subsystem block in Simulink?
2,524 views
Skip to first unread message
grapevine
unread,
Feb 8, 2012, 3:31:23 AM2/8/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
hi,
I would like to display the input channels on the bottom of a subsystem block so I try to modify the port position of this block , but at any attempt I get an error message saying:
'
ModelReference block parameter 'PortConnectivity' is read-only
'
This is the list of command that I used
"
portData = get_param('ModelName/MySubsystemBlockName','PortConnectivity');
portData(1).Position = [newXValue newYValue];
set_param('ModelName/MySubsystemBlockName','PortConnectivity',portData);
"
Does anyone have any ideas for how I can put the input ports on more than one side?
Having all my input ports on one side makes it harder to identify them
Feel free to propose a different solution
Phil Goddard
unread,
Feb 8, 2012, 9:23:13 AM2/8/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
You cannot.
Except for trigger and enable port, all input and output ports are on opposite sides to each other (left-right, up-down, etc depending on the rotation of the block).
Phil.
grapevine
unread,
Feb 15, 2012, 3:28:10 AM2/15/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Thank a lot for your answer,
I guess you are right but I'm still wondering why we have that option, "PortConnectivity", in the parameters list of a Simulink block:
http://www.mathworks.nl/help/toolbox/simulink/slref/f23-7517.html and in particular in which cases we can modify it.
when can a Simulink block be writing permitted?