LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino + Labview connection 50% success rate

I have a new laptop with windows 7, the arduino R3 and labview 2011 with arduino tool kit. I can successfully connect to the arduino and flash an LED off and on but I fail to connect to the arduino half the time. I stop labview

unplug the arduino and try again and it works.  Any ideas why serial connection only works 50% of the time?

Thank you for any help.

0 Kudos
Message 1 of 6
(4,077 Views)

i have the same problem...i am trying to figure out why this %50 thing? i can reconnect after a disconnect from labview, but i beleive you have to let the caps on the pcb discharge a bit by waiting 30 secs and verifying that the serial port is available through the "arduino .exe". may not be the solution for you....

0 Kudos
Message 2 of 6
(3,185 Views)

OK, but I never have a problem downloading code to the arduino board using the serial port and Arduino software?  It must be a Labview serial connection thing. Thank you for the reply.

0 Kudos
Message 3 of 6
(3,185 Views)

If you properly close the Arduino through LabVIEW it should work 100% of the time.  This is the biggest reason that I've seen that it does not work after running it at least once.  Therefore, you should NEVER use the force stop button in LabVIEW when working with LIFA.

0 Kudos
Message 4 of 6
(3,185 Views)

True, I was stopping labview with a force stop in the menu bar instead of the stop loop which did not let the close connection VI run as the last step. Once I got a connection and stopped my labview program properly it worked 100% of the time. Thank you!

0 Kudos
Message 5 of 6
(3,185 Views)

Hey no problem.  It happens A LOT and it happened to me too.  Good luck on your project.

0 Kudos
Message 6 of 6
(3,185 Views)