From the course: Learning LabVIEW
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Traffic light - LabVIEW Tutorial
From the course: Learning LabVIEW
Challenge: Traffic light
(upbeat music) - [Instructor] It's challenge time again. This time your goal is to build a state machine in LabVIEW to simulate the behavior of a simple traffic light. Your program should have three states for the three colors of a traffic light, green, yellow, and red. The program should start in the Green state, which turns on just the green light, and keeps it on for three seconds. After three seconds have passed, the program transitions to the Yellow state, which turns on the yellow light for one seconds, and then it transitions to the Red state, which turns on the red light for two seconds. After the Red state finishes, the program transitions back to the Green state to begin the cycle again. The purpose of this challenge is to give you practice building out the basic structure for a state machine in LabVIEW, so I've intentionally kept the transitions from one state to the next as simple and straightforward as possible.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.