Thread Subject: How can I change the IO port position on a subsystem block in Simulink?

Subject: How can I change the IO port position on a subsystem block in Simulink?

From: grapevine

Date: 8 Feb, 2012 08:31:23

Message: 1 of 3

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

 

Subject: How can I change the IO port position on a subsystem block in Simulink?

From: Phil Goddard

Date: 8 Feb, 2012 14:23:13

Message: 2 of 3

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.

Subject: How can I change the IO port position on a subsystem block in Simulink?

From: grapevine

Date: 15 Feb, 2012 08:28:10

Message: 3 of 3

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" <phil@goddardconsulting.ca> wrote in message <jgu0gh$j2r$1@newscl01ah.mathworks.com>...
> 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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com