CVI - Shows how to write a state machine in C