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.
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.
08-11-2011 09:37 PM
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?
11-02-2011 02:53 PM
Did you ever find an answer?
I too just plugged in an Arduino to my longtime Labview environment.
11-02-2011 04:02 PM
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
11-04-2011 11:42 AM
11-15-2011 01:47 PM
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).
11-15-2011 02:45 PM
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