FFT from downsampled signal

Felix Bodenmüller

Posted on 30.03.2017 11:05

Hello,

I'm having recorded data with Dewesoft, where I used a sampling rate of 50 kS/sec. The sampling rate has been chose, because we need to look at harmonic content up to about 15 kHz.

Now I also want to see the frequency spectrum of the signal in the area between 10 Hz and 100 Hz.

Unfortunately the frequency resolution is limited to df = 1,53 Hz (N = 16k). (32k or 64k cannot be selected.)

Is it somehow possible that I downsample my signals to e.g. 5 kS/sec and then make a FFT of it, where with N = 16k it would result in a frequency resolution of 0,153Hz?


Regards.

Primož Gorenšek
Automotive Application Engineer
Posted on 30.03.2017 15:51

It's possible to reduce the data with offline math and then export those channels.

If you have acquired the data with a 200 kHz sampling rate and you would like to export the data with a 20 kHz sampling rate, you need to export only every 10th sample. To do this:
1. go to offline math (setup)
2. Add math
3. Basic statistics
4. Under output channels select only "average" and under calculation type "Block based" and sample based. Block size should be 10 samples if you would like to reduce the data for a factor of 10 (or you can define the block size in terms of time).
5. You can select multiple or all channels in the formula and you will have reduced data for all channels at once. Then you can export the these channels into a new DEWESoft file and therefore reduce the number of samples.
Another option is to use a filter and the sample rate divider option. Please refer to the attached image (filter.png).



Best regards,

Primoz


Attached files:
Primož Gorenšek
Automotive Application Engineer
Posted on 31.03.2017 09:18

Hi Felix,

Instead of reducing the sample rate, it is also possible to use 32K or 64K frequency resolution on the existing file. Please go to settings -> Performance -> Memory -> Sync DC buffer length -> increase to 10seconds.


Best regards,

Primoz

Felix Bodenmüller

Posted on 31.03.2017 17:05

Hello Primoz,

thanks a lot!

Increasing the Sync DC Buffer length helped!

Regards,

Felix

Leon Dusseldorp

Posted on 06.01.2022 10:59

Hello Primoz,


I saw this old post, and we have the same challange to have more resolution in a zoomed part of a FFT spectrum (0-100 Hz). Our original measurement have a samplerate of 25600 Hz (bandwith 10 kHz). I tried to reduce the data (kind of downsampling) and I exported it, as you discribed it in the post above. I asume the exporting is needed for export with anti-aliasing filter?

When opening the exported file, I have still the same resolution as in the orignal file (max res 64K lines, df=0,195) . I can adjust in the FFT setup the resolution (see attachment, df=0,1 Hz, 128k lines), but I can't select this settings in FFT setup in review mode (max 64k lines). Is there a solution for this?


Regards,

Leon.


Attached files:
Leon Dusseldorp

Posted on 06.01.2022 13:58

Hello again,

In the meanwhile I was reading old posts, and I found a few that talked about export rate. So I thought, maybe this could help me. In the attachment you can see that on one channel I decreased de exportrate from default (25,6 kHz) to 12,8 kHz and number two is original. But after exporting and zooming in on the timesignal you can see, that both signals have the same samplepoints. Can you explain this?

Regards,

Leon

Gregor Šmit

Posted on 02.02.2022 13:46

Dear Leon,


thank you for contacting us.


When opening the exported file, I have still the same resolution as in the original file (max res 64K lines, df=0,195) . I can adjust in the FFT setup the resolution (see attachment, df=0,1 Hz, 128k lines), but I can't select this settings in FFT setup in review mode (max 64k lines). Is there a solution for this? The FFT preview is not controlled through the mathematic FFT setup. The FFT preview Widget only has the option to set the lines to max 64K lines. To display the FFT calculated with the FFT Math please use the 2D Graph.


Regarding the export that has the sample rate of 25,6 kHz but the export rate is set to 12,8 kHz. The export rate setting only applies to export to other file formats TXT, Excel etc. and does not apply to the .dxd export. To change the sample rate of the recorded file (to downsample the data) you can create a Math channel with the signal that you would like to downsample and in the Time axis choose Sync Timebase and SRDiv to 2, please refer to the attached image. With downsampling by just applying the sample rate divider the donwnsampled signal will have aliases. That is why before downsampling a signal a low pass filter has to be applied. Then you can export these downsampled. If you are exporting to other file formats such as TXT, Excel etc this is automatically done and the resampler type can be specified.


Kind regards.

Leon Dusseldorp

Posted on 04.02.2022 09:23

Dear Gregor,


Thank you for the explanation but I still can't figure it out. I can create the low pass filter (FIR with Fc2=400 Hz) and then the mathchannel as you discribed. In the recorder (time domain), I can see that the number of samples is halved, but I can't make a FFT of it in a 2D graph. In a FFT-preview I can see the df=decreased and the spikes are sharper (2 times more resulotion).

If I set the SRDIV from 2 to 4, there is no FFT visible any more.


Is it possible that you can add a Dewesoft setup as an example in this topic? The original recording is Fmax=10kHz/ SR=25,6 kHz and I want to make a FFT 0-100Hz, with a resolution 0,1Hz or better.


Kind regards, Leon.

Gregor Šmit

Posted on 23.02.2022 13:30

Dear Leon,


We have changed the Sync DC buffer length (Settings -> Performance -> Memory -> Sync DC buffer length) to 50 seconds and then created a FFT math channel with resolution of Df [Hz] = 0.1 Hz. Please notice that this math FFT is viewed on the 2D Graph. For the comparison there is also a FFT Preview Widget (left of the 2D graph) where the resolution is df = 0.195 Hz. Please also notice that the FFT on the 2D graph is not displayed immediately but after some time, this is due to the difference on how FFT preview and FFT math calculate FFT. The FFT math displays values after they are calculated for defined Line resolution. The FFT Preview takes the available data and displays the FFT.

Kind regards.


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .