/arduino_DAQ_with_LabVIEW

A tutorial on setting up an arduino as a data acquisition device with LabVIEW

GNU General Public License v3.0GPL-3.0

Creating a DAQ system with Arduino and LabVIEW

A tutorial on setting up an data acquisition system with an Arduino device and LabVIEW.

Installation

  • Download LabVIEW and NI-VISA.

  • Open the VI Package Manager, find and install Digilent LINX

image

Setup

  • Connect your Arduino device and double check the port number (you can do this with the "Device Manager" in Windows)

image

  • To setup the Arduino to send data to our labview program we need to configure the firmware. Go to tools/MakerHub/LINX/LINX Firmware Wizard

image

  • Select your device and follow the steps.

image

  • Once the Wizard complete the process we can launch an example from the bottom right corner.

image

If you ran into issue getting to this step try this you can also try the LINX Firmware Wizard Help button or a simple internet search to help you out.

Test

  • With the LINX Blink(Simple).vi open we are ready to test communication between the Arduino and LabVIEW
  • Select the port connected to your device and press the Run arrow at the top right
  • Clicking the green button should turn the built in LED on and off -Click Stop to end the test

image

Customize

After we have checked that the Arduino communicates with LabVIEW, it's time to create our own program.

  • Begin with an example, go to help/Find Examples

image

  • Start with the example that is closest to your requirments and build it up from there
  • The Front Panel has gauges and progress bars to visualize the data
  • The Block Diagram sets 4 analog pins for reading data and recording to an excel file for analysis.

image

image