LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem connecting labview with Arduino uno.

I can’t get the Arduino to work from labview. It does not seem to see com 3.

When I make a simple labview program in the Arduino VISA resource window I click refresh noting comes up. The Arduino uno is showing in device manager on com 3 but it cannot be seen in labview.

0 Kudos
Message 1 of 14
(9,927 Views)

Follow LIFA installation guide closely.

0 Kudos
Message 2 of 14
(5,843 Views)

I had followed the LIFA installation.The LIFA_Base sketch is uploaded to the ardunio but labview is not seeing it.

0 Kudos
Message 3 of 14
(5,843 Views)

can you uploade your VI?

0 Kudos
Message 4 of 14
(5,843 Views)

If LabVIEW can't see the COM port then you might need re-install VISA.

As an FYI, LIFA is no longer actively supported by the author and it is recommended that you switch to LINX (the successor to LIFA).

0 Kudos
Message 5 of 14
(5,843 Views)

I re-installed VISA and labview can now see the com3. The labview Measurement and automation explorer also sees it and says This device is working properly.

Problem now is that when I run the labview program I get the following message:

Error -1073807343 occurred at Property Node (arg 1) in LabVIEW Interface for Arduino.lvlib:Init.vi->sun tracker with monitor.vi

Possible reason(s):

VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

Any ideas

0 Kudos
Message 6 of 14
(5,843 Views)

Also when trying to run a different labview program I get this error:

Error 5002 occurred at Init.vi.  Unable to establish connection with Arduino.  Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (5002) or for its hexadecimal representation (0x0000138A).

0 Kudos
Message 7 of 14
(5,843 Views)

IIRC, Error 5002 will happen when you initiate the serial communication but don't release it.  Meaning that when you run Init.vi you must then run Close.vi to release it.  So, if you have this error you can easily open Close.vi and set the correct COM port and run it.  This should release the resource so that you can run Init.vi again.

0 Kudos
Message 8 of 14
(5,843 Views)

Thanks Nathan but still no joy. I done as you said but still getting the same error 5002.

In the close.vi box getting this error:

Init.vi.  Unable to establish connection with Arduino.  Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.

0 Kudos
Message 9 of 14
(5,843 Views)

I m also having the same problem "

Error 5002 occurred at Init.vi.  Unable to establish connection with Arduino. Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (5002) or for its hexadecimal representation (0x0000138A).".

Have your problem been solved?

0 Kudos
Message 10 of 14
(5,843 Views)