Overview
Demo traffic light by using state machine
This project indicates the use of state machines and how they can be easily created using a number of basic elements;
- Type defined enum
- While Loop
- Shift registers
- Case strucuture
Requirements
Software
LabVIEW 2013 (or compatible)
Steps to Implement or Execute Code
- Run the VI
- The Red light would turn on at first, then the amber light turn on for 1sec.
- Both red and red light turn off. Green light turn on.
- Press the "Turn on red light" button. The amber light would turn on at first, then the red light turn on.
Additional Information or Reference


**This document has been updated to meet the current required format for the NI Code Exchange.**
__________________________
Aidan H
Applications Engineer
National Instruments UK & Ireland