Efficient way to reduce noise from load cell data DAQ?

조회 수: 13 (최근 30일)
vu ngothanh
vu ngothanh 2016년 6월 20일
댓글: Star Strider 2016년 6월 21일
Dear all,
I use DAQ to get data from Loadcell. However, the signal wave have many unnecessary waves (picture 1). I want to reduce those waves, just keep the peak wave (it show the load from the hammer) look like picture 2. I has tried to use filter function, but not working. What should I do to solve it.
Thank you very much.

채택된 답변

Star Strider
Star Strider 2016년 6월 20일
The easiest way would be to use a low-pass filter, band-pass filter (if you want to remove a d-c offset), or a notch filter to filter out the high-frequency noise. There are many ways to design filters in MATLAB, including designfilt, firls, and others. My usual procedure for IIR filters is here: How to design a lowpass filter for ocean wave data in Matlab?
If you provide a sample of your data, I may be able to help you design your filter. I will need a vector of sample times as well as your signal vector.
  댓글 수: 4
vu ngothanh
vu ngothanh 2016년 6월 21일
Oh, The result is very very good, much more better than I expected. Do you think that it will be better if insert this 2 line in the last result that you gave me.
[b,a]=butter(2,0.01);
Lc_last=filter(b,a,LC_filt);
Thank you very much.
God bless you.
Star Strider
Star Strider 2016년 6월 21일
My pleasure.
I am not certain what result you want, so experiment with the filters to isolate your frequencies of interest. That code designs a low-pass filter with a cutoff of about 51 Hz. Looking at the Fourier transform plot, it would seem to me to eliminate part of your signal, probably eliminating the high-frequency transients.
I would use filtfilt rather than filter, because filtfilt has a maximally flat phase response, and will eliminate phase distortion in the filtered signal.
The third column of your data appears to be an impact record (input), so if you want to get an input-output transfer function of your system, you would have to filter the input signal with the same low-pass filter. (You can estimate your system transfer function from the two time-domain signals with the invfreqz function in the Signal Processing Toolbox. As with everything else in signal processing, you will have to experiment with it to get the result you want.)
Thank you. I wish you the same.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by