Problem with convert acceleration to velocity and displacement

Hi everyone,
I used DAQ to get acceleration, however, when I convert accleration to velocity and displacement (using 'cumtrapz' function) is not OK like the picture below:
Problem is that the velocity and displacement is increase with time. What i need to do make the velocity and displacement stable around 0.

回答 (2 件)

Jos (10584)
Jos (10584) 2016 年 6 月 9 日

0 投票

Apparently there is an offset in your acceleration data. You can subtract a running mean
A(k) = ValueFromDaq - mean(A(1:k-1))

6 件のコメント

vu ngothanh
vu ngothanh 2016 年 6 月 10 日
編集済み: vu ngothanh 2016 年 6 月 10 日
Dear Mr Job,
Your method not work properly. It still have a little offset. Do you have any other way to solve it.
Thank you.
Star Strider
Star Strider 2016 年 6 月 10 日
Try subtracting the median instead of the mean.
vu ngothanh
vu ngothanh 2016 年 6 月 10 日
Dear Mr Star Strider,
Thank you for your help. your way much better.
Thank you very much.
Star Strider
Star Strider 2016 年 6 月 10 日
As always, my pleasure.
The median is the value at which 50% of the values are above and 50% are below. The mean is significantly affected by extremes of the values, since it is the least-squared-error estimate of the centroid of a particular distribution. The median is not affected by the extremes.
Jos (10584)
Jos (10584) 2016 年 6 月 10 日
Good suggestion, Star Strider, to use the median.
vu ngothanh
vu ngothanh 2016 年 6 月 13 日
Dear Mr Jos and Star Strider,
at last, I found "detrend" function. I think that is the best solution for this situation.
Thank you for you all for helping me.

サインインしてコメントする。

Bora Eryilmaz
Bora Eryilmaz 2024 年 3 月 21 日

0 投票

The new convertVibration function in MATLAB R2024a release of the Predictive Maintenance Toolbox lets you compute baseline-corrected and filtered acceleration, velocity, and displacement signals from vibration measurements using a single sensor output from either an accelerometer, velocity sensor, or displacement sensor.

カテゴリ

ヘルプ センター および File ExchangeData Acquisition Toolbox についてさらに検索

質問済み:

2016 年 6 月 9 日

回答済み:

2024 年 3 月 21 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by