NI Home > Community > NI Discussion Forums

LabVIEW Developers Seeking Employment

Showing results for 
Search instead for 
Do you mean 
Reply
Member
VI_Joe
Posts: 121
0 Kudos

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.

Trusted Enthusiast
Posts: 2,700
0 Kudos

Re: CLD Traffic Light Sample Exam

Post in the LabVIEW board so that more people will look into it.
Active Participant
mtat76
Posts: 429

Re: CLD Traffic Light Sample Exam

I guess this is for whoever comes after, but since couldn't find an update to this post anywhere else.  First, the interface seems to be slow to respond.  This is because the event structure is located in the state handling loop.  You might want to consider placing the event handler in a separate loop that is used strictly to handle such interactions.  Second, you are using waaaaaaaaaay too much CPU - throttle that loop (10 ms should be fine).  Finally, consider using the elapsed time express sub VI instead of your own VI - this will save time and energy.

 

Hope this helps future CLDers.

 

Cheers, Matt

Matt Richardson
Certified LabVIEW Developer
MSR Consulting, LLC
Member
elkag
Posts: 4
0 Kudos

Re: CLD Traffic Light Sample Exam

All great suggestions.  Thanks.