Changing the value of 'compare to constant' and 'repeating sequence interpolating' blocks using GUI
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone!
i have a simulink model which consists of ' compare to constant (<=) ' and ' repeating sequence interpolating ' blocks.
i am required to create a GUI to change the value of the blocks. however, i do not know how to do it.
anyone is able to provide me with some information?
Thanks in advance!
0 件のコメント
回答 (1 件)
Abhilash Padma
2019 年 7 月 17 日
Hi,
I understand that you have two blocks in Simulink, and you want to create a GUI to change the value of this blocks.
You can do this by creating an app in app designer with two Edit Field components.
In the “ValueChangedFcn” of Edit Field components, you can use “set_param” function to set the value of your required Simulink block.
The syntax of “set_param” function is as follows,
set_param(‘modelName/BlockName’ , ‘BlockParameterName’, value);
For more information, refer the following links:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Schedule Model Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!