07-19-2013 12:59 PM
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!
07-19-2013 01:31 PM
I'm also getting Error 1073807343 when I try to change the name of the VISA resource string
07-19-2013 01:59 PM
Try creating a string with the com location and linking that to the resource name.
07-19-2013 02:02 PM
Thank you for responding!
Unfortunately I tried that and got Error 1073807342
07-19-2013 02:04 PM
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:
07-19-2013 02:08 PM
Also, are you using Windows or Mac? What's your setup? Which version of LabView?
07-19-2013 02:16 PM
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?
07-19-2013 04:56 PM
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.
07-19-2013 04:59 PM
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".
07-19-2013 05:07 PM
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.