LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Mega 2560 - 5002 error

even after changing the time out to 10,000 ms .stilll im getting error5002 .please help me out

0 Kudos
Message 21 of 61
(2,079 Views)

Sir,

I have tried out all possible means that you have suggested but i am unable to proceed with the arduino Mega board . Once i program it receives the packets ,Rx led blinks but an error message pops up from the Init Vi . Error 5002 . Iam using win7 32 bit , i tried out with different versions , different boards of arduino(Uno, Mega ,Duemenulova) , still problem persists .Kindly help me sort out this problem , i am unable to proceed with my H-Bridge control due to this communication problem with labview and arduino all the time . Is there any stable solution for it?

Regards

Vishal

0 Kudos
Message 22 of 61
(2,079 Views)

Hey,

Do you guys know which version of the Arduino Bootloader you are using?  If not do you know when you purchased your board?  Can you upgrade to the latest version of the bootloader?  How many times does the status LED on the board blink when you power it up?  How many times, if any, does the status led blink when you run your LabVIEW VI?

-Sam K

LIFA Developer

0 Kudos
Message 23 of 61
(2,079 Views)

Sir,

We had bought the board recently a week back MEGA 2560 ,i guess the bootloader is  stk500v2 bootloader; the led blinks 12 times and once the error pops out it blinks one time . This error is popping out all the time when i run the VI . Kindly help me out.

Regards

VIshal

0 Kudos
Message 24 of 61
(2,079 Views)

Yes

You have make sure that the windows device com port setting match the NI-MAX settings. First set tne windows device settings then validate the com port settings in NI-MAX

0 Kudos
Message 25 of 61
(2,079 Views)

Try to change COM port number in windows.

follow your dreams
0 Kudos
Message 26 of 61
(2,079 Views)

Sir,

We made it work after one week of trouble changing the settings modifying the VIs. Still sometimes it works , sometimes it doesnt like:

1. We made a simple program for led interfacing and it is successful. Once i interface my proximity sensor in my next attempt , Error 5002 pops in . Then we created a serial buffer VI that flushes out and if we run that and then run the arduino VI , it runs well. So there is not a stable VI for running continuously the labview-arduino interface .

Since we are building a Rover that requires 8 motor with H bridge , i want to drive it using arduino-labview interface . The Init VI has a delay of 15 sec then only output signal (as in highlight execution) enters into next stage . If this is the case , then my ROV motor control will be in vain as it requires continous signal from labview-arduino , then only navigation underwater wil become possible.

The changes we made for solving :

1. NI MAX baud rate

2.COM settings in device manager (for check )

3. Serial buffer VI everytime you want to innovate in arduino or 5002 pops

Kindly suggest me a faster response for motor control ,

Regards

Vishal

0 Kudos
Message 27 of 61
(2,079 Views)

Vishal,

Can you post the firmware that you are using and some example of LV code that work and dont work.  This will really help me get to the bottom of this if you know that one VI worked and then adding a bit of code caused it to fail.

Thanks,

-Sam K

LIFA Developer

0 Kudos
Message 28 of 61
(2,079 Views)

I tried to follow MAELabman  comments and turned on the highlight execution.  Sometimes i could get init to work, but eventually just wired out init and fed the output cluster to the while loop and I can read the voltage on an analog pin.  It is late and I don't know if I am on a USB-1 port but I will try this again at a later time. 

arduino init.JPG

LeMur Technology Services, LLC
0 Kudos
Message 29 of 61
(2,079 Views)

Hey,

I've been working with RyanNaz in this thread and it sounds like removing the input to the flow control terminal of the VISA configure serial port may have resolved the error for him.  Can anyone else confirm this?

Thanks,

-Sam K

0 Kudos
Message 30 of 61
(2,079 Views)