필터 지우기
필터 지우기

Using OR in simulink

조회 수: 1 (최근 30일)
William Corluka
William Corluka 2020년 5월 21일
댓글: Ryan 2024년 5월 15일
Hi Guys,
Im working on a timed traffic light system (which includes pedestrian lights) in matlab using relational operators and lamps. I am having trouble getting the red pedestrian light to remain on, at the time the main traffic light turns orange. I asked my lecturer about this, and he expalined that I need to use an OR operator to complete this system. I have tried integrating this into my simple system but cant seem to get the light to remain red and then turn off while the main lamp switches from orange to red. My traffic light works well apart from this section.
Please see attached simulink file to understand further what I am trying to do.
Thanks guys!
William

답변 (1개)

Raunak Gupta
Raunak Gupta 2020년 5월 28일
Hi,
By adding OR in the model means even if the traffic light is green or orange the pedestrian light should remain red. I have added the OR and input to that is the red and orange lines for traffic signal. The output of this OR is then you signal for lamp showing red light for pedestrain. You may find attached model helpful.I have made the changes as told above.
  댓글 수: 1
Ryan
Ryan 2024년 5월 15일
Hi,
Could you possible show how to do that exactly through logic operations ?
thank you

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

카테고리

Help CenterFile Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by