From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, 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 Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

upload labview code to arduino

I’m new to Arduino, old to LabView.  My use for Arduino is as a stand alone microprocessor.  All the examples I have seen on this site are standard real time VI’s that initialize, read and write commands in a while loop, then close communication.

I don’t see anything about uploading the code to the Arduino to run autonomously.  Can that be done with a labview vi or do I need to go back to the Arduino compiler?

Message 1 of 6
(12,050 Views)

Did you ever find an answer?

I too just plugged in an Arduino to my longtime Labview environment.

0 Kudos
Message 2 of 6
(6,130 Views)

With the Labview Interface for Arduino you do not upload Labview code to an Arduino board.   Insead to get started you need to follow the "Labview interface for Arduinmo Setup Procedure" given on  this <https://decibel.ni.com/content/docs/DOC-15971> page.  Notice in step 6 you are downloading a sketch to the Arduinmo Bloard.  When you run one of the supplied examples the Labview code running on a PC sends commands to the sketch you uploaded in step 6,  and the Arduino Board returns the results to Labview.  The supplied examples are installed in Step 4 in the Setup Procedure.  All of the supplied examples are listed on this <https://decibel.ni.com/content/groups/labview-interface-for-arduino?view=documents#/?tagSet=undefine...> page. 

Howard

0 Kudos
Message 3 of 6
(6,130 Views)

See FAQ number 7         

https://decibel.ni.com/content/docs/DOC-16024

-Sam K

LIFA Developer

Message 4 of 6
(6,130 Views)

So then, basically (because there's only one .pde file separately uploaded to it from the Arduino IDE) the Arduino is just being used as a serial I/O device (i.e. cheaper-than-NI-hardware) rather than something like an FPGA where it could independently do its own processing and correspond with a VI?

Something similar is available for use with Processing (http;//processing.org).

0 Kudos
Message 5 of 6
(6,130 Views)

SJN,

You can also do processing on the Arduino independent of LabVIEW by modifying the firmware.  Say for example you have 10 weather stations around your house all connected via I2C (maybe a bad example but it will do).  You could use the Arduino to gather information from the stations and store it in the Arduino's RAM for averaging over a 10 minute period.  Then every 10 minutes you send the data to LabVIEW to display on screen and log to your mySQL database.

So you can leverage both the Arduino and the PC processing power in whatever way works best for you.

-Sam K

LIFA Developer

Message 6 of 6
(6,130 Views)