Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

velocity, displacement from accelerometer

Hello,

 

I'm trying to find a way to integrate data that I have collected from an accelerometer to determine both the velocity and displacement. I have already tried to use the time domain math functions and have tried to build my own functions without success. I was wondering if there was a way to determine the amount of "real time" that has passed in the duration of a loop so I could use that as my dt for integration.

 

Any help would be greatly appreciated!

 

 

0 Kudos
Message 1 of 2
(5,667 Views)

Hey mkeese,

 

It's fairly difficult to get good velocity and especially displacement from just an accelerometer.  An IMU (inertial measurement unit) typically works better, but can still be pretty tricky to get dislacement.

 

That being said you can use the Tick Count function in LabVIEW to get the time between loops.  The tick count function will return the current count in ms or us (depending on which you use) .  You can subtract the current tick count from a previous tick count to get the time that has ellapsed.

 

 
0 Kudos
Message 2 of 2
(5,656 Views)