Christophe Boudrie
2007-10-18 13:32:33 UTC
Hi,
I have some strange behaviour with simulink when I try to
position some blocks by using command line.
For example:
I try to place a bus selector block,
set_param(mybus_selector,'Position',[140 29400 160 32760]);
(my grid spacing is =20)
and when I check where this block is placed:
real_bus_position=get_param(mybus_selector,'Position');
I get: real_bus_position=[[140 0 160 3400]];
Which is very different from what I asked for.
I want to understand the reason of this difference, I need
to manage automatically this positionning.
Thanks,
CB.
I have some strange behaviour with simulink when I try to
position some blocks by using command line.
For example:
I try to place a bus selector block,
set_param(mybus_selector,'Position',[140 29400 160 32760]);
(my grid spacing is =20)
and when I check where this block is placed:
real_bus_position=get_param(mybus_selector,'Position');
I get: real_bus_position=[[140 0 160 3400]];
Which is very different from what I asked for.
I want to understand the reason of this difference, I need
to manage automatically this positionning.
Thanks,
CB.