LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Uno R3 interface communication problem to Labview

Hi

I cannot communicate with the my Arduino Uno R3 , the Int.vi does not able to establish communication with the board. And I get the Error 5002.

I have no problem to work with the Arduino using the Arduino code compiler ( so this is not a hardware problem) .

Does anyone solved this problem and can explain to me what is needed to be changed in the Int.vi so the labview can work with the Uno R3.

It is really so simple to work with labview and the Arduino so please can someone share a solution

0 Kudos
Message 1 of 8
(6,840 Views)

From what I've read (I can't remember if this is the correct error), people have had success by wiring a constant to the VISA Resource input for Init.vi like this:

Init.vi.png

Be sure to select the COM port listed in the device manager (the same one that you use for the Arduino IDE).

If you are still having issues, post a the code that you are using (saved for LabVIEW 2009) or in this case, an image of the code will probably suffice.

Here is a document regarding this error:  http://digital.ni.com/public.nsf/allkb/15AE7F234C5B966886257884006DF1CD

0 Kudos
Message 2 of 8
(4,148 Views)

Hi

Well I added the Arduino “Com” to the Int.vi and still no successes, the com added is the one that in use from the device manager ( I can communicate with the arduino by the compiler via this com )

See attached the code in use, it is as simple as it gets, and also for the link added I did not understand line 1:

Make sure that the correct firmware is flashed to the Arduino. The correct firmware can be found in <LabVIEW>\vi.lib\LabVIEW Interface for Arduino\Firmware\LVIFA_Base”

What action is required to do?

Do you have a detail solution since I do not think the problem is with the set up but maybe in the Int.vi , Maybe there is an updated version of the LIFA .

code-example.PNG

0 Kudos
Message 3 of 8
(4,148 Views)

That first line just says that you need to make sure that the firmware (the LIFA code that you upload to Arduino) is properly uloaded to Arduino.  The firmware is located in:  <LabVIEW>\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base (there is no longer a 'V' in LIFA).

The latest version of LIFA was release in August 2012 (I think), version 2.2.0.79.

The issue is more than likely something specific to your computer or Arduino.

Message 4 of 8
(4,148 Views)

Hi

My problem was solved there was a problem with the port definition in my computer , I was able to communicate with the Arduino I used this simple code to write PIN 13 just to get a feedback

0 Kudos
Message 5 of 8
(4,148 Views)

hi

   

     i too have the same problem.....

     

     i need to know how you solved this problem ....

     please expalin in detail... its urgent

0 Kudos
Message 6 of 8
(4,148 Views)

Hi

I have same problem.

Did you solve the problem?

Please let me know.

0 Kudos
Message 7 of 8
(4,148 Views)

I can't upload LIFA base to the arduino at first, then I have a friend helped me delated some code from LIFA BASE, and it works

0 Kudos
Message 8 of 8
(4,148 Views)