LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 5005

Hello everyone,

I installed the LabVIEW interface for Arduino on my PC.  The Arduino shows up on the device manager as COM6, and I know that the arduino is hooked up and working. I also loaded the LVIFA_Base.pde file in Arduino IDE software and uploaded it to the board.  I have a photocell hooked up to my arduino using the same curcuit that's shown in the diagram, and it works with the Arduino C++ software, but when I try to set up the LabVIEW arduino interface I keep getting errors, including Errors 5002, 5003, 5005, and 1873807342.

I read a ton of blog posts about similar problems, and most of them mention selecting the appropriate COM port from the drop-down menu on the VISA resource. However, whenever I refresh the VISA resource menu nothing ever shows up. When I just type in "COM6" as a string I get new errors. Does anyone have any idea what's wrong or how I can get the arduino LabVIEW interface working?

Thanks!

0 Kudos
Message 1 of 15
(6,686 Views)

I'm also getting Error 1073807343 when I try to change the name of the VISA resource string

0 Kudos
Message 2 of 15
(4,225 Views)

Try creating a string with the com location and linking that to the resource name.

0 Kudos
Message 3 of 15
(4,225 Views)

Thank you for responding!

Unfortunately I tried that and got Error 1073807342

0 Kudos
Message 4 of 15
(4,225 Views)

http://www.ni.com/support/labview/visa/verr6.htm

It appears you do not have the correct com. You could try creating another VI that scans the ports to find out what is connected and its location...

This is from the above URL:

Error -1073807342

Description and Solution

  • This error is caused when the Resource Name passed to VISA Open is incorrect. The following text shows proper syntax for Resource Name:

  • If you use GPIB addresses, the following syntax is used:
    • GPIB[board]::primary address[::secondary address][::INSTR]
    • Example: GPIB::4 means address 4 of GPIB board 0
    • Example: GPIB2::9[::3][::INSTR] means GPIB board 2, primary address 9, secondary address 3
  • If you use Serial ports, the following syntax is used:
    • ASRL[board][::INSTR]
    • Example: ASRL1 means com port 1
    • Example: ASRL2 means com port 2
    • Example: ASRL10 means LPT port 1
    • Example: ASRL11 means LPT port 2
    • Note: If you are used to the old Serial VI's, this syntax is different. (With VISA, ASRL1 means Com 1.)

NOTE: LabVIEW online help for the VISA Open function gives more detail for all of this information



0 Kudos
Message 5 of 15
(4,225 Views)

Also, are you using Windows or Mac? What's your setup? Which version of LabView?

0 Kudos
Message 6 of 15
(4,225 Views)

I'm using Windows 7, and I'm using LabVIEW 2012. I'm using the default "Arduino Photocell" program that came with the Labview Arduino interface. How would I go about scanning the ports?

0 Kudos
Message 7 of 15
(4,225 Views)

If you are using LVIFA_Base.pde then you are usnig an outdated version of LIFA (or just the LIFA firmware).  You should upgrade to the latest version (2.2.079 I think).  The correct firmware is based on LIFA_Base.ino.  This version of LIFA will work with Arduino IDE version 1.0 or greater.

Can you give us a screenshot of your Device Manager showing the Arduino connected?  Also, you should check in MAX to see if it sees the Arduino.

0 Kudos
Message 8 of 15
(4,225 Views)

jplmargot wrote:

You could try creating another VI that scans the ports to find out what is connected and its location...


The Init.vi already does this when a resource is not wired to the VI.  See the subVI "Auto Detect Arduino.vi".

0 Kudos
Message 9 of 15
(4,225 Views)

That never worked for me on my setup, so I created my own just to pull the address manually. I'm running on OSX Mountain Lion, LabVIEW 2012. So that was my workaround.

0 Kudos
Message 10 of 15
(4,225 Views)