LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FFT Peak at 0hz

Hey. I am using cDaq and NI 9237 (Bridge module). Where I am measuring strain and performing Frequency analysis on it (FFT). This is known as dynamic stress analysis if I am not mistaken. The issue I am facing is that there is a peak 0 Hz which is relatively large as compared to the peaks at other frequencies. I am using a quarter bridge configuration and the gauge is 350ohm.

How can I get rid of this peak. I have tried a high-pass filter blocking frequencies lower than 3Hz. I have used the butter-worth filter with a order of 35. but this only dampens the the amplitude for that peak and it shifts it to 6 7 HZ.

 

Another point is that when the filter is applied the 0Hz peak is shifted as mentioned and it's amplitude increases and decreases.

 

 

Some feedback will be highly appreciated.

0 Kudos
Message 1 of 7
(252 Views)

Hi bilal,

 

the value at 0Hz is an offset (aka "DC value").

So you have two options:

  • remove the offset in your time-based data, then apply the FFT
  • first apply the FFT, then set the offset to zero in the frequency-based data
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(247 Views)

How could I remove the DC offset. Could you kindly elaborate more on then and provide with an example if you can.

 

Thanks A lot for the response.

0 Kudos
Message 3 of 7
(214 Views)

@bilalskd wrote:

How could I remove the DC offset. Could you kindly elaborate more on then and provide with an example if you can.


You can subtract the mean of all points from the data. But why? A 0Hz component is just data and does not influence the other frequency values, you can just ignore it.

Message 4 of 7
(194 Views)

The reason I wanted to remove it because it was large in amplitude and causing the scale of graph to be affected due to it. 

 

I could obviously manually scale my graph to see the relavent  frequencies. But just wanted this to he removed and have the pure relavent data.

0 Kudos
Message 5 of 7
(175 Views)

Hi bilal,

 


@bilalskd wrote:

But just wanted this to he removed and have the pure relavent data.


ReplaceArraySubset with 0 at index and element input will do the trick…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(149 Views)

Often it is also useful to just set the Y scale to logarithmic. Now you can more easily see minor frequency components, even of some frequencies (e.g. 0Hz) are very dominant.

 

Message 7 of 7
(126 Views)