Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5668

Arduino code for Xbee communication

$
0
0

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.


Viewing all articles
Browse latest Browse all 5668

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>