(Solved):
Shown in figure 1 is a Simulink/Stateflow model of a traffic light system. Grn nic 0 e Pat M Ped H ...
Shown in figure 1 is a Simulink/Stateflow model of a traffic light system. Grn nic 0 e Pat M Ped Ha 10 PG P PO 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. O Ensures the pushed button signal remains setion until a reset signal is received from the state machine. This allows for a momentary switch to be used rather than a maintained switch. O Allows the pedestrian to change their mind about crossing the road (allows the pedestrian the ability to reset the pushed button signal). O Provides the counter information to the state machine allowing state 2 to stay on for 5 seconds and state 3 to stay on for 10 seconds only. O 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. O Converts the signal from the Constant block from a double-precision floating point number into a Boolean (true/false). P