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

changing parameters in locked library (simulink)

1,622 views
Skip to first unread message

Bernt

unread,
Nov 20, 2002, 6:22:25 AM11/20/02
to
Hi everybody,

I am trying to change the parameters of a block within a locked
library using the 'set_param' command. I don't want to unlock the
library manually by using 'Edit->Unlock library' but rather from
within the source code. I read somewhere that I should break the links
(e.g. set_param('<library>/<block>','LinkStatus','none'); ) but
unfortunately this uses 'set_param' as well and I still get an
Error-Message saying that I attempt to modify a locked (read-only)
library.
What am I doing wrong or is there any other way to solve this problem?
Thanks for any help,

Bernt

Steve Conahan

unread,
Nov 20, 2002, 7:18:41 PM11/20/02
to
Hi Bernt,

Better ways to solve this might be:

1) Create your own custom library containing the original block (with the
original library link removed - just make it your own library block now with
the parameters you want set the way you want before saving your new
library).

2) Use the original library block in a model and do appropriate set_param
commands on the block(s) only in model(s). There would be no issues with
library unlocking then... ;-)

hth,
Steve

"Bernt" <ber...@gmx.de> wrote in message
news:eeaab80a.02112...@posting.google.com...

Bernt

unread,
Nov 27, 2002, 6:19:18 AM11/27/02
to
Thanks a lot, even though I might be a little late (but I only work
once a week). I even figured it (choice 2)) out before I read your
post
but it's nice to know where to find people that are willing (and of
course able) to help :-))


"Steve Conahan" <scon...@mathworks.com> wrote in message news:<arh8p1$pak$1...@ginger.mathworks.com>...

Yves

unread,
Mar 1, 2015, 8:56:45 AM3/1/15
to
ber...@gmx.de (Bernt) wrote in message <eeaab80a.02112...@posting.google.com>...
Hi Bernt

I am facing the same kind of Problem, since I intend to change the MaskPrompts based on a chosen Popup-Option (in the same mask). This works fine with set_param, but when I add my block to my library and use it I get the same error as you.

Do you mind telling me how I can address just the block in the current model and not the block in the library. I tried the full path of the block ('model/block'), as well as gcb and gcbh and none of it worked.

I doubt it is necessary to rebuild the whole mask as GUI, but it is the only way I can think of to fix this issue.

Your help would be greatly appreciated.

Thanks
Yves
0 new messages