Turn of slider switch automatically

3 views (last 30 days)
Khoa Tran
Khoa Tran on 25 Aug 2021
Commented: Khoa Tran on 25 Aug 2021
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)

Accepted Answer

Jonas
Jonas on 25 Aug 2021
Use a push button instead of a slider switch.
  1 Comment
Khoa Tran
Khoa Tran on 25 Aug 2021
thanks, i havent thought of this

Sign in to comment.

More Answers (1)

stozaki
stozaki on 25 Aug 2021
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

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!