Sending and Recieving

Hi all,

I’m really new with these xbee things and I’m having a little trouble. I’m working on a project where I have 2 xbee’s communicating. The idea is to have one connected to the computer through the PKG-U usb adapter and then the other is just connected to a breadboard with a distance sensor. The goal is to write some code, preferably in c++ that will read and display the distance information in real time.

The problem is I don’t really know how to set up the xbee’s with the x-ctu software or how to write the code. What I’d really like to know is the codeing part. I have no clue how to get the distance information sent from my xbee connected to the computer.