LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLD Traffic Light Sample Exam.

I am posting my solution for the CLD Traffic Light Sample Exam.  Comments and input is appreciated.  The main VI is Traffic Lite.vi.

 

Thanks in advance. Smiley Happy

0 Kudos
Message 1 of 5
(5,078 Views)

Hi Joe,

 

Here are my preliminary suggestions...

 

1. I would suggest to use Get time/Date in seconds instead of Tick count for finding elapsed time.

 

Reason: http://digital.ni.com/public.nsf/allkb/6F6B9F4E149C80578625652800784764

 

2. When you hit the stop button,it should react within 100ms.

 

3. Document each programming structure with a brief description of its functionality

    Label wires to show the data on the wire and the direction of data flow

    Label constants with names that represent their functions

 

Reason: Because CLD has good weightage in documentation part.So concentrate on it.

 

 

Message 2 of 5
(5,058 Views)

Nice work, VI Joe.  I heve just a few comments.  The first two will get you more points from the judges, the third is personal style preference.

 

  1. Add descriptions and tip strips to your controls (and indicators).

  2. You go to either Idle or Display from almost every state; poll the controls before your main Case Structure executes and update the indicators afterwards instead.  You wouldn't need to use a State Queue any more if you did this.
    1. This would also get your Stop button to work as required.  As VENKATESH.J mentioned, it needs to respond immediately.

  3. This is a cleaner way to queue up multiple states:

    cleaner.png
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 5
(5,034 Views)

This is a nit, but your left turn is pointing right.

Message 4 of 5
(4,927 Views)

This is the UPS turn efficiency traffic light system Smiley Wink

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 5 of 5
(4,912 Views)