LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LabView to plot serial data in real time from Arduino

Hello,

 

I have never worked with taking serial data from an Arduino and using it in a LabView program.  My question is if I wanted to take incoming serial data from an Arduino and plot it on a graph in real time, what is the best way to start doing this?  I would prefer to not use any Arduino packages or drivers, but rather use serial communication instruments so that this program would work for any incoming serial data from any device in the future.  

 

Thank You.

0 Kudos
Message 1 of 2
(4,058 Views)

Hello!

The VISA API within LabVIEW will allow you to communicate with Arduino over a serial port. You will need the NI-VISA driver to access the VISA functions, which can be downloaded here: https://www.ni.com/en-us/support/downloads/drivers/download.ni-visa.html#329456 . 

 

If you have access to LabVIEW, you can find an example vi within the LabVIEW Example Finder called "Continuous Serial Read and Write." This vi will allow you choose to read, write, or both, and you can modify it to include a graph to show the data. You will also need to use the Decimal String to Number function to get the data into a format you can graph.

 

The forum thread linked below also has a simple serial read example attached to a post on the first page. You could adjust this as needed to fit your application. The example I have in mind is attached to Message 4 of 128.

https://forums.ni.com/t5/LabVIEW/How-to-read-Serial-Data-from-Arduino-using-labview-VISA/m-p/1497988...

 

I hope this helps!

 

Kayla A.

Technical Support Engineering

 

0 Kudos
Message 2 of 2
(3,915 Views)