Disabled a button with Simulink
5 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone !
I work on an project which is the following : I have to disable a button according to different conditions during simulation.
I tried to comment out the button automatically with a matlab function but I had an error.
- Cannot change parameter ' (Commented)' of 'Cabine_system/Slider Switch' while simulation is running
So I guess I cannot comment out automatically a block when the simulation is running.
Do you have any ideas how it would be possible to disable a button instead of commenting out the button ?
Thank you for your help !
Eloise
0 件のコメント
回答 (1 件)
Fangjun Jiang
2020 年 6 月 3 日
Try this. Put all those blocks inside an Enabled Subsystem. Use your logic to Enable/Disable the subsystem.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Create Large-Scale Model Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!