Here's an example of how to get data from the simulator: http://gist.github.com/228998
It has everything you need to treat it as a virtual IMU. This was instrumental in getting my extended Kalman filter running (to be open sourced soonish) and I hope you find it useful too!
(I'll do an updated version that shows you how to control the plane in X-Plane from your code.)…