Turn of slider switch automatically
3 ビュー (過去 30 日間)
古いコメントを表示
hi everyone, so i am building an traffic light simulink. The first image is my state-flow chart
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/720689/image.png)
When the pedestrian button is pressed, then the traffic light will be like this (second image).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/720694/image.png)
but when the traffic light goes to green again, the pedestrian button is still on, how can i turn it off? can anyone show me how to do this? (third image)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/720699/image.png)
0 件のコメント
採用された回答
その他の回答 (1 件)
stozaki
2021 年 8 月 25 日
Hi,
The Slider Switch button does not automatically switch ON / OFF.
A user switches ON / OFF with a mouse click. Therefore, even if the color of the lamp is switched, the Slider Switch will not turn on.
stozaki
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!