Turn of slider switch automatically
1 次查看(过去 30 天)
显示 更早的评论
hi everyone, so i am building an traffic light simulink. The first image is my state-flow chart
When the pedestrian button is pressed, then the traffic light will be like this (second image).
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)
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!