From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Interface for Arduino Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Example Arduino: analog input + serial interface to LabVIEW

Description

This article presents a procedure for reading an analog port on the Arduino UNO R3 board , the analog data will be sent via serial communication to the PC and can be monitored from the front panel of our program through a graph indicator .

1.png

Procedure

First we note that analog data work and these can vary from 0 - 5VDC, for this type of data can be used a potentiometer or a variable source if we have it, for this example we will use a potentiometer and voltage is obtained from Arduino same card .

We will use the provided software developers Arduino, to conduct the program reading the analog port A0 . For the development of our program we note that the value obtained in the analog port is a value between 0 and 1023, then a fragment program that will download into the microcontroller.

2.png

Make a program in LabVIEW to test and verify the correct operation of our program in the Arduino , we will make the reading of data transmitted by the Arduino from the serial port on the card installed , proceed to read the COM port

4.png

Download All
Comments
yanlin007
Member
Member
on

Before interfacing with labview and arduino, is this need to download this program source code to the arduino uno microcontroller? thank you very much.

hrh1818
Active Participant
Active Participant
on

This example does not use LIFA.  So yes you need to compile and upload the sketch shown above to your Arduino board before connecting the Arduino board to Labview.

hrh1818

phmota
Member
Member
on

On Labview, the integer "signal" seems to be connected on wrong pin (offset instead number).

musama
Member
Member
on

I have Read 220 rms voltage from Arduino using serial monitor. Now i want to display it on Labview so can anyone help me with that

Contributors