This program is provided in the "Behaviors" section of LabVIEW 2010. It can be very useful in more advanced projects, such as creating an NXT Trolley (a vehicle that follows a line, and stops with touch or sound.)
This example demonstrates how to use multiple sensors and motors to control a vehicle. The while loops and case structures control the movement of the car. The purpose of the nested while loops is to permit holding down the buttons.