Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino code for Xbee communication

Hi everyone, absolute beginner to bath Arduino, Xbee and Labview and looking for help. I am building a project to basicaly operate a remote control car wirelessly using labview and xbee series 1 and arduino. The LabView VI operates the car when the arduino is connected directly to the car and the laptop. I have configured the Xbee's using CoolTerm and i can acheve communication in both directions. The trouble starts when i attach the remote Xbee to the arduino. The setup is as follows. Co-ordinator placed on explorer board attached to laptop. Remote Xbee wired into Arduino motor shield which is placed on arduino. At the moment i plug this into another usb port on the laptop for power only. On the labview vi i have changed the connection type to Xbee. And all baudrates are set at 9600.

I seem to be having a problem at the init.vi block , returning an error 5002. Im guessing the problem is my arduino code. Im not very good at code however i think the loop is fine, but the setup i dont know how to do this. Some videos viewed led me to believe if i uploaded the LabViewInterface file that it may work using this alone but i have tried this and no luck.

Can anybody advice me on where im going wrong, thanks in advance.

0 Kudos
Message 1 of 4
(4,572 Views)
0 Kudos
Message 2 of 4
(4,564 Views)

Thanks for your reply nyc, however i dont seem to be any wiser. My main question is do i actually need arduno code to operate a remote control car from my front panel of my labview VI or will should the LVIFa base do? It appears to be the Xbees causing the trouble and there seems to be very little good information on how to use these with labview. Again thanks for any help.

0 Kudos
Message 3 of 4
(4,541 Views)

@rossonairi wrote:

Thanks for your reply nyc, however i dont seem to be any wiser. My main question is do i actually need arduno code to operate a remote control car from my front panel of my labview VI or will should the LVIFa base do? It appears to be the Xbees causing the trouble and there seems to be very little good information on how to use these with labview. Again thanks for any help.


As your question on THAT forum.

0 Kudos
Message 4 of 4
(4,533 Views)