How to use 'set_param' command for Sample Time parameter in Bernoulli Binary Generator?
7 ビュー (過去 30 日間)
古いコメントを表示
I am doing my final year project on GUI for WiMAX simulink.So I used Bernoulli generator as the signal input of my simulink.I want to change its Sample Time using a code.I used this code;
set_param([my_model '/Bernoulli Binary Generator'],'Sample Time','value')
but this is not working and give an error that there is no parameter called sample time.please help. Thanks.
0 件のコメント
採用された回答
Rob Graessle
2011 年 3 月 5 日
The correct parameter name is 'Ts'.
You can view a list of the block's parameters like this:
get_param([my_model '/Bernoulli Binary Generator'],'ObjectParameters')
3 件のコメント
Guy Rouleau
2011 年 3 月 6 日
This is very likely because there is a problem with your string. Try splitting your line in pieces:
blk = [ 'make your string here... '];
param_value = [ 'you see what I mean...']
set_param(blk,'Ts',param_value)
It should help identify which part of your script is wrong
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!