From: hrishikesh on 27 Jul 2010 01:57 hi everyone the problem with set_param() still persits in my case in setting constant block parameters Details: i do have a constant block name initial with constant value intially set to 1; now from gui i am changing value of constant value to suppose 10 using set_param('f14/Constant','Constant Value','10'); same old error comes constant block does not have param named'Constant Value' so i changed the function as suggested by few to set_param( 'f14/Constant','Value','10');but problem still persists,any help is appreciated
From: hrishikesh on 27 Jul 2010 02:04 set_param( 'f14/initial','Value','10');but problem still persist
From: Gautham Prasad on 27 Jul 2010 02:24 "hrishikesh " <dalvihrishikesh(a)gmail.com> wrote in message <i2lssl$gp8$1(a)fred.mathworks.com>... > > > > > > > set_param( 'f14/initial','Value','10');but problem still persist type help set_param on command window. the syntax is very clearly given
From: Dev on 27 Jul 2010 05:58 You need to change the property 'Value' try doing set_param('f14/Constant','Value','10'); "hrishikesh " <dalvihrishikesh(a)gmail.com> wrote in message <i2lsfg$k2s$1(a)fred.mathworks.com>... > hi everyone the problem with set_param() still persits in my case in setting constant block parameters > Details: i do have a constant block name initial with constant value intially set to 1; > now from gui i am changing value of constant value to suppose 10 using set_param('f14/Constant','Constant Value','10'); same old error comes constant block does not have param named'Constant Value' > so i changed the function as suggested by few to > > set_param( 'f14/Constant','Value','10');but problem still persists,any help is appreciated
From: Guy Rouleau on 27 Jul 2010 19:34 "Dev " <vyomdev(a)gmail.com> wrote in message <i2majc$46g$1(a)fred.mathworks.com>... > You need to change the property 'Value' > try doing > set_param('f14/Constant','Value','10'); > > > "hrishikesh " <dalvihrishikesh(a)gmail.com> wrote in message <i2lsfg$k2s$1(a)fred.mathworks.com>... > > hi everyone the problem with set_param() still persits in my case in setting constant block parameters > > Details: i do have a constant block name initial with constant value intially set to 1; > > now from gui i am changing value of constant value to suppose 10 using set_param('f14/Constant','Constant Value','10'); same old error comes constant block does not have param named'Constant Value' > > so i changed the function as suggested by few to > > > > set_param( 'f14/Constant','Value','10');but problem still persists,any help is appreciated Hi, To find the correct name of the parameter to tune, select the block in Simulink, go to the MATLAB command prompt and do: get_param(gcb,'dialogparameters') GCB returns the name of the currently selected block and "dialogparameters" returns the list of available parameters for this block. With that info, you should be able to obtain what you need from get_param. HTH, Guy
|
Next
|
Last
Pages: 1 2 Prev: How to write a Arrary of Strings to Excel Next: Matlab Publisher LineBreak |