Home / Expert Answers / Computer Science / shown-in-figure-1-is-a-simulink-stateflow-model-of-a-traffic-light-system-red-traffic-g-button-s-pa293

(Solved): Shown in figure 1 is a Simulink/Stateflow model of a traffic light system. Red traffic G button S ...



Shown in figure 1 is a Simulink/Stateflow model of a traffic light system.
Red traffic
G
button
Set signal
Pedestrian_button_

Ensures the pushed button signal remains set/on until a reset signal is received from the state machine.
This allows for a mo

Shown in figure 1 is a Simulink/Stateflow model of a traffic light system. Red traffic G button Set signal Pedestrian_button_pushed 0 Pedestrian_button PR PG sr_reset PR Reset signal Z 5 Pedestrian Green PG Figure 1: A Simulink model of a traffic light system. This system contains Three (3) lights that control vehicular traffic (red = stop, yellow = caution, green = go) as well as Two (2) lights to control pedestrian traffic (red = stop, green = walk). This system will remain in state 1 (cars go/pedestrians stop state) until the Button is pushed then the light sequence will: • Transition into state 2 (cars go/pedestrians stop state) which will continue to look for the Button's status but will also wait for 8 seconds (this state is to ensure that the light sequence is not instantly triggered if the pedestrian crossing is busy that day). • Transition into state 3 (cars caution/pedestrian stop state), which will be active for 5 seconds, then • Transition into state 4 (cars stop/pedestrians go state), which will be active for 10 seconds • Finally the system will transition back to state 1 (cars go/pedestrians stop state) and again wait for the Button to be pushed. Select from the available options below what the purpose of the S-R Latch (S-R Flip-Flop) block will be in this system. R 10> Yellow_traffic Pedestrian Red Green_traffic Ensures the pushed button signal remains set/on until a reset signal is received from the state machine. This allows for a momentary switch to be used rather than a maintained switch. Allows the pedestrian to change their mind about crossing the road (allows the pedestrian the ability to reset the pushed button signal). Provides the counter information to the state machine allowing state 3 to stay on for 5 seconds and state 4 to stay on for 10 seconds only. Will allow the traffic light system to change from requiring a pedestrian to press the button to cross the road to being a traffic light sequence that just operates based on a timer. Converts the signal from the Constant block from a double-precision floating point number into a Boolean (true/false).


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe