Hello,
I know from a GUI I can change the values of constants, switches, or gain blocks with the following commands:
set_param('ModelName/Constant','value','100'); set_param('ModelName/Manual Switch','sw','1'); set_param('ModelName/Gain','Gain','.5');
However, if I wanted to adjust a value in a block other than these, such as the AWGN block from the communication systems toolbox, could I use a similar method?
I've tried:
set_param('ModelName/AWGN Channel1,'SNR',1);andset_param('ModelName/AWGN Channel1,'Value',1);
But I get the following errors, respectively:
AWGN Channel block (mask) does not have a parameternamed 'SNR'
and
AWGN Channel block (mask) does not have a parameternamed 'Value'
Is there a way to find out what parameters are available to be modified for each block? Or an you only modify basic blocks in this way?
Thanks,
-Will
Best Answer