How to activate or desactivate a simulink block?
8 ビュー (過去 30 日間)
古いコメントを表示
Good morning, I have a variable which change his value for 0 to 1 and viceversa. I know that there is a block to activate or desactivate a simulink block but if I use a enable block I can`t use goto or from blocks.
I need to use from or goto blocks, so has someone any idea to activate or desactivae a block?
Thanks for all.
回答 (2 件)
Azzi Abdelmalek
2014 年 12 月 5 日
set_param('ModelName/BlocName','Commented','off') % or on
3 件のコメント
Azzi Abdelmalek
2014 年 12 月 5 日
編集済み: Azzi Abdelmalek
2014 年 12 月 5 日
It's a line of code, put it in a Matlab function block
参考
カテゴリ
Help Center および File Exchange で Install Products についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!