フィルターのクリア

Changing Simulink Block Values from GUI

4 ビュー (過去 30 日間)
Will Forfang
Will Forfang 2013 年 3 月 24 日
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);
and
set_param('ModelName/AWGN Channel1,'Value',1);
But I get the following errors, respectively:
AWGN Channel block (mask) does not have a parameter
named 'SNR'
and
AWGN Channel block (mask) does not have a parameter
named '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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 24 日
編集済み: Azzi Abdelmalek 2013 年 3 月 24 日
If you want to get the real parameters name of your block, type in windows command:
get_param('ModelName/AWGN Channel1','dialogparameters')
  1 件のコメント
Will Forfang
Will Forfang 2013 年 3 月 24 日
Perfect, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePropagation and Channel Models についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by