Use this example to individually control the Digital Output pins onboard your Arduino prototyping board.
The NI LabVIEW Interface for Arduino Toolkit is required to run this example, you can download it for free here.
1. Initialises Arduino device, e.g. Arduino UNO
2. Defines all Digital Pins (2 to 13) as "Outputs", Pins 0 to 1 are reserved for communication with LabVIEW
3. Constantly check status of Boolean switches 2 to 13 and writes their corresponding output to the Arduino's Digital Pins
4. If there is an error in the process or the user presses the "Stop" button on the front panel the "While" loop stops
5. Clears the Arduino resource and displays any errors