Skip navigation

Community

Currently Being Moderated

NI LabVIEW Interface for Arduino Toolkit - Individual Digital Pin Control

VERSION 1 
Created on: Dec 23, 2011 4:33 AM by Jamie_S. - Last Modified:  Dec 23, 2011 4:36 AM by Jamie_S.
Visibility: Open to anyone

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.

 

Functional Description
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



 

Front Panel.JPG

 

block diagram.JPG

Attachments:
Comments (10)