BioeStudent,
I haven't written an application like this, so I don't know much about the algorithms involved. However, I did find an Example Program on our website that uses a myDAQ with LabVIEW to control a 3-axis accelerometer. Another forum poster seems to have contributed his work in a thread on applying a Kalman filter to an accelerometer. You can look at his code in the attachment.
Cheers,
KyleP
Applications Engineer
National Instruments