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
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...
"Steve Conahan" <scon...@mathworks.com> wrote in message news:<arh8p1$pak$1...@ginger.mathworks.com>...