LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering raw data

Hi,

 

I'm using 3-axis accelerometer, and i want to calculate velocity and distance by integration.

I'm trying to filter the noise that comes with the signal.

The velocity integration is fine. I'm getting velocity that is very close to zero when my robot is standing still.

However, the second integration is diverging because of the value of velocity.

 

How can I filter the siganl to get distance that is not diverging?

 

My vi file is attached.

 

Thank You.

0 Kudos
Message 1 of 4
(2,698 Views)

Please write the model used accelerometer or example of raw-data array. Triaxial accelerometer If, then calculate the distance traveled should be carried out based on the total vector whose projections on each axis accelerometer and outputs.

0 Kudos
Message 2 of 4
(2,676 Views)

sagishy, 

 

how far does your distance value diverge? and i second pavel. could you share your raw data? 

0 Kudos
Message 3 of 4
(2,649 Views)

The divergence you see may be the result of a constant offset from the first integration. The integral of Cdt is Ct.  If you remove the mean after the first integration, the Ct term will be removed from the second integration. You do need to be careful that you do not remove a slowly varying or constant term which is actually part of your real data.

 

Lynn

0 Kudos
Message 4 of 4
(2,638 Views)