Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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
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
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
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?



Is it possible to made a block like the sum?
http://www.mathworks.nl/help/toolbox/simulink/slref/add.html
where we can change the ports position changing its shape





"Phil Goddard" <ph...@goddardconsulting.ca> wrote in message <jgu0gh$j2r$1...@newscl01ah.mathworks.com>...
0 new messages