one of the parameter is Name, but I can't figure out the others.
my code is:
hLine = add_line... : this is the handle for the line
set_param(hLine,"name","...
Can anyone help me?
Thanks,
Vasi
type get(hLine) in command window to see the properties.
use set(hLine,...) to set values. set_param(hLine,...) works too.
how are things going? Haven't heard from each other for a while ;-)
params = get_param(hLine,'ObjectParameters')
shows you the possible parameter names of the line (works for blocks and
models as well!).
Titus
"Madincea Vasile" <vasile....@siemens.com> schrieb im Newsbeitrag
news:ef48b...@webcrossing.raydaftYaTP...
Thanks again for the previous help.
Vasi
Titus
"Madincea Vasile" <vasile....@siemens.com> schrieb im Newsbeitrag
news:ef48...@webcrossing.raydaftYaTP...
If you have a block, named 'BlockA', you can get handles to the
signal lines that connect to the block:
BlkName = 'BlockA';
Ports = get_param(BlkName, 'PortHandles');
PortHandle = Ports.Inports(1);
LineHandle = get_param(PortHandle, 'Line');
and you could then, for example, find which block(s) that line is
sourced from (for a signal line going to an inport on our theoretical
'BlockA'):
SrcBlkHandle = get_param(LineHandle, SrcBlockHandle);
get_param(SrcBlkHandle, 'Name');
If you're not actually interested in the line, just in what it's
connected to at the other end, you have another method:
BlkName = 'BlockA';
PortConns = get_param(BlkName, 'PortConnectivity');
PortConns is then an array containing fields which give
Source/Destination block handles & port numbers.
HTH,
Graham.
<snip>