02-17-2013 02:57 PM
I would like to get the BlinkM.vi example to work on Arduino Uno R3 in Labview and Arduino 1.0.3
LIFA in LabView 2012 f3 running BlinkM.vi always gives this error: 5002 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.
I have repeatedly checked: driver installation for Arduino UNO REV3.inf, even tried conversion to a VISA resource using NI-VISA 5.2, opened a VISA test panel, and tested with Arduino 1.0.3. Nothing works. What else should I check?
Windows knows the Arduino Uno R3 is there but Labview and Arduino 1.0.3 seem to be brain dead about the fact the Arduino Uno R3 is installed in Windows device manager.
Any suggestions? On my system the Arduino Uno is on COM14 which I have set in LabView Init.vi and Arduino 1.0.3, but nothing helps. What's the secret sauce to get this thing to work?
Vincent Randal
Longmont, Colorado
02-17-2013 04:36 PM
Do the examples in the Arduino IDE work (without LabVIEW)? If yes, does the firmware successfully compile and upload to the Arduino? If yes, are you able to run other Arduino VIs?
This type of Error is not usually specific to any one VI. It is usually when something more fundamental is not working.
02-17-2013 06:18 PM
Nothing works except compiling and uploading. Afterwards the Arduino Uno acts like the USB/Serial connection on COM14 is no longer functioning per the above error message. My guess is the Uno crashes after loading *any* program.
But that does not matter. That's just my view of the things. The real important information is in the actual error message as stated above which I will repeat here with emphasis:
Error 5002 in 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."
Let's not get hung up on BlinkM.vi since many VI's like BlinkM.vi call Init.vi and cannot work if Init.vi is not working as shown above. So it's not limited to one VI and it can't get anymore fundamental than that.
What's changed? What's the secret sauce? I selected COM14 in Arduino 1.0.3 and LabView with LIFA. What else is there to try?
Seriously, just exactly what is the driver installation procedure that is necessary to get Arduino Uno to work in LabView 2012? Is it necessary to use NI-VISA to create a driver or should the stock driver work?
Vincent Randal
Longmont, Colorado
02-17-2013 06:49 PM
vtrandal wrote:
Nothing works except compiling and uploading. Afterwards the Arduino Uno acts like the USB/Serial connection on COM14 is no longer functioning per the above error message. My guess is the Uno crashes after loading *any* program.
But that does not matter. That's just my view of the things. The real important information is in the actual error message as stated above which I will repeat here with emphasis:
Error 5002 in 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."
Let's not get hung up on BlinkM.vi since many VI's like BlinkM.vi call Init.vi and cannot work if Init.vi is not working as shown above. So it's not limited to one VI and it can't get anymore fundamental than that.
What's changed? What's the secret sauce? I selected COM14 in Arduino 1.0.3 and LabView with LIFA. What else is there to try?
Seriously, just exactly what is the driver installation procedure that is necessary to get Arduino Uno to work in LabView 2012? Is it necessary to use NI-VISA to create a driver or should the stock driver work?
Vincent Randal
Longmont, Colorado
You didn't answer my question or were extremely vague to the point that I can't assume that I know what you meant.
Do the examples in the Arduino IDE work? Try the blink example in the Arduino IDE: File > Examples > Basic > Blink. If you are able to compile and upload then the driver is working perfectly fine. After doing this and restarting the Arduino, does the LED blink?
Your "re-emphasis" on the specific error does not really help because there are many things that can cause that error. When you ask "what has changed?" it implies that it worked before (on an earlier version) . . . is this the case?
Here is the official 5002 page: http://digital.ni.com/public.nsf/allkb/15AE7F234C5B966886257884006DF1CD
P.S. Everytime I read "secret sauce" it makes me cringe . . .