Log in

View Full Version : 2010 accelerometer


chsr
21-01-2010, 21:19
Does anyone have any sample code or any idea in general on how to get the accelerometer working?

My code is basically:
Accelerometer *accel;
accel = new Accelerometer(4);
cout << accel->GetAcceleration() << endl;


however, each time we are getting -2.057095... whether or not the accelerometer is plugged in or not...

Thanks.

jhersh
22-01-2010, 02:28
Try looking here: http://decibel.ni.com/content/thread/5634