Showing results for 
Search instead for 
Did you mean: 

LabVIEW and Arduino

Go to solution

LabVIEW and Arduino

Hi all!

I own an Arduino Uno. Reading posts in the forum seems that i can use LabVIEW only with Arduino Duemilanove. Is this true?


0 Kudos
Message 1 of 11

How to read Serial Data from Arduino using labview VISA?

Hi =). Im a beginner working reading serial data from an arduino but im facing... Lets do this step by step


I constructed a voltage divider circuit that gives an output ranging from 0 to 5V. The output of this circuit is sent to an analog input pin 0 of an Arduino Duemilanove board.


1) Firstly I plugged in the cable connecting my laptop USB to the arduino board.


2) I went to start->control panel->system->hardware->device manager. Check out Ports(COM & LPT). In my laptop I can see USB Serial Port (COM4). Now I know in Labview I have to read serial data from COM 4.


3) For the arduino side, here is the code to read voltage variations inputted to analog pin 0. The last line 'delay' determines the sampling rate of how we want to sample the voltage divider output:


int potPin = 0;    // select the input pin for the voltage divider output
int val = 0;       // variable to store the value coming from the sensor

void setup()
  Serial.begin(9600);    // opens serial port, sets data rate to 9600 bps

void loop() {
  val = analogRead(potPin); // read the value from the voltage divider


I have slightly modified the basic serial read write VI.. I have attached the block diagram used with comments. Basically I tried to read serial data, divide by 1023 and multiply by 5 in order to graph voltage variations from the voltage divider circuit.  However Im not getting the correct voltage output values . The voltage value just keeps going to 0 and coming again as shown in the pic.


Could you guys please guide me on what went wrong?









0 Kudos
Message 2 of 11

Re: How to read Serial Data from Arduino using labview VISA?



Start your own message thread.  Don't hijack someone else's message.

0 Kudos
Message 3 of 11

Arduino Uno

Sorry for the interruption.. Im new to this forum and I thought my question may be helpful under this topic.


Regarding in whether arduino Uno can be used with labview, The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-serial converter.


I came across this link, did mention that we do not need to install an FTDI driver to our PC if we are using an Uno. The other steps the author has mentioned to in order to communicate between labview and arduino are similar to Dueminalove and other boards.



0 Kudos
Message 4 of 11

Re: Arduino Uno

Thanks for your considerations Jazlan, but these don't satisfy my question.


I simply need to know if someone succeeded in using Arduino Uno with LabVIEW. Being the owner of an Arduino Uno, i need to know this in order to understand if i have to replace it with an Arduino Duemilanove.


Smiley Happy

0 Kudos
Message 5 of 11

Re: Arduino Uno

if the equipment support Serial (VISA) communication, then I see no point in why it should not work.


Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's Smiley Wink
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 6 of 11
Accepted by topic author aRCo
08-27-2015 04:09 PM

Re: Arduino Uno

Yes, I've used an UNO with LabVIEW, and it works just fine. Identically to the previous versions.
I hope this helps,
Tanya V
National Instruments
LabVIEW Platform Product Support Engineer
0 Kudos
Message 7 of 11

Re: Arduino Uno

Clear like water. Thanks Tanya!

0 Kudos
Message 8 of 11

Re: Arduino Uno

hello such, any consultation with arduino is better than consult in the next group, also find, documentation, examples

0 Kudos
Message 9 of 11

Re: Arduino Uno

0 Kudos
Message 10 of 11