LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Traffic Light Controller Implementation

I downloaded the sample Traffic Light Controller from the NI website. I was interested in the implementation steps of this particular project. Thanks for your help.
0 Kudos
Message 1 of 6
(9,209 Views)
Hi Dace,

Can you please post a link to where you got this example? or possibly post a zip file with the example in it if it's not too large?

Thanks!
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 2 of 6
(9,172 Views)
 
Please Help. I need some implementation tips on subject. I just finished the LabVIEW Basics 1&2  Training Course and am interested in
playing and creating my own traffic light controller. Thanks.
0 Kudos
Message 3 of 6
(9,142 Views)
Hi Dace,

This is a great example. It shows many of the useful structures and functions of LabVIEW. Do you need any specifics? Most of the code is relatively self explanatory if you've just finished the LabVIEW Basics 1&2.

Just as a brief walkthrough..... they use a Cluster to hold all of the boolean constants in the top left of the block diagram. At the same time they set up a queue on the bottom left side of the diagram. This feeds into a while loop controlled by a stop button that contains a couple of case structures. The different cases of the case structures define the state of the lights.

Let me know if you want more specific information than this.

Regards,
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 4 of 6
(9,102 Views)

Who can help me to programme a traffic light control using Labview fpga

              ------qqqyang@gmail..com

帖子被qqqyang@gmail.com在06-05-2007 08:25 AM时编辑过了

0 Kudos
Message 5 of 6
(8,887 Views)
qqqyang-

The code linked above for the traffic light controller will work in LabVIEW FPGA with some minor changes. You will need to replace the timing with something compatible with FPGA (such as a tick count instead of a date/time in seconds), and remove the error handler. Other than that, the code should compile for FPGA without a problem.

Xaq
0 Kudos
Message 6 of 6
(8,798 Views)