LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

What needs to be done in Arduino IDE versus LabView?

Solved!
Go to solution

Hello,

I am new to LabView and I have a question. Let's say I have a sensor hooked up to my Arduino that communicates with the Arduino via I2C and I want to read the data using LabView. I have an Arduino sketch that works. Do I place that sketch code into the Arduino LabView code?  Is everything done through the LabView program or is there still code that needs to be added to the Arduino LabView sketch? (like defining registers etc...) Is there a place that explains that you can direct me to? Thank you.

0 Kudos
Message 1 of 3
(3,837 Views)

You cannot put your Arduino code with the LIFA firmware.  Because it is I2C, you don't shouldn't need to do anything with the firmware.  All you really have to do is port your working code to LabVIEW.

Message 2 of 3
(3,052 Views)
Solution
Accepted by topic author Lostlo

On this communities home page click on the Documents tab. Then open the document "Labview Interface for Arduino FAQ"  This document provides an excellent overview of LIFA.  Next open "Labview Interface for Arduino Setup Procedure"  This documnts tells you how to install LIFA

Think of LIFA as being a method for sending commands to an Arduino and receivinjg data from an Arduino.  The LIFA firware which you upload to an rduino during the setup procedured defines the list of commands you can send and the responses.   Because the Arduino integrated delopment environment, IDE,  is not a multi programming environment you can not upload additional programs when the LIFA firmware is loarded.  If You try the LIFA firmaware will be over written.

As a starting point I suggest you use the BlinM example.  It uses the i2c bus.  Your task will be to modify the VI to get it to work with your sensor.

Howard

0 Kudos
Message 3 of 3
(3,052 Views)