Turn of slider switch automatically

조회 수: 1 (최근 30일)
Khoa Tran
Khoa Tran 2021년 8월 25일
댓글: Khoa Tran 2021년 8월 25일
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)

채택된 답변

Jonas
Jonas 2021년 8월 25일
Use a push button instead of a slider switch.
  댓글 수: 1
Khoa Tran
Khoa Tran 2021년 8월 25일
thanks, i havent thought of this

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

stozaki
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 CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by