LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino mega 2560- 5002 error

Hello, I have seen that there are posts about this problem but haven't found an answer.

I have a arduino mega bought from a friend, the arduino workes well. I tried using it with LabVIEW (I used LabVIEW with uno and mega before and worked well). Now I get 5002 error. I highlighted execution all and realized that the arduino doesn't respond. Rx flashes rapidly but the Tx stays off. Tried increasing the timeout but no effect.

I have checked the com port. I set the baudrate to 9600 and selected the board type to mega. I highlighted execution inside the init VI and found out that inside the init VI, is the Send Receive VI that gives me the error. Inside this is the Wait for bytes VI and discovered that inside this VI is the problem. The property node that returns the "bytes at port" value of VISA returns 0. I don't understand why.

Can you please help me.

0 Kudos
Message 1 of 3
(3,725 Views)

The lights that you are describing means that LabVIEW is trying to talk to the Arduino but the Arduino is just not responding.  This will happen when the firmware is not uploaded to it correctly.  There are several other things to check listed on the official 5002 error page.

0 Kudos
Message 2 of 3
(2,974 Views)

Along with what Nathan_B mentioned above please make sure the baud rate in LabVIEW is set to 9600 and the baud rate in the Arduino firmware is set to 9600.

Thanks and good luck!

-Sam K

LIFA Developer

0 Kudos
Message 3 of 3
(2,974 Views)