Lab 3 Programming Structures - Timing Issues
I. Objective:
To give the student a lesson in using user-defined Sub-VIs, graphics, local/global variables, and other programming structures in LabVIEW.
II. Procedure:
Create a simulation traffic light at a four-way intersection. Import a picture for the intersection from the web page or make one of your own. To import a picture, simply cut and paste it onto the front panel. On top of this picture of the intersection, place your traffic lights. This traffic light should have
Control |
Function |
Slide control A | Controls duration of N-S Green Light |
Slide control B | Controls duration of N-S Yellow Light |
Slide control C |
Controls duration of E-W Green light |
Slide control D |
Controls duration of E-W Yellow light |
Using these four controls, you should be able to figure out the duration of the E-W and N-S red lights. Remember that the North-South and East-West traffic lights have to be in sync with each other (i.e. both traffic lights cannot show greenthis would cause an accident).
There should not be any numeric inputs in the system (the user must choose the duration of the lights via slides or other controllers).
Additional information and a copy of this lab is located at:
http://web.njit.edu/~gnita/VI/OPSE310/OPSE310Lab3.htm
Submit the created VI by attaching it to an e-mail document that contains the answers to the discussion questions below. (Note that you can either attach the VI or zip the VI by using WinZIP). E-mail the answers to the discussion questions and VI to:
gnita@njit.eduIII. Discussion: