Equation used to calculated Spectrum

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
marouxet
Newbie
Posts: 0
Joined: Fri Feb 27, 2015 7:34 pm

Equation used to calculated Spectrum

Post by marouxet »

Hello!

I am working in Matlab, I want to make a little soft to post-processing information that I get using my picoscope 3424. Until now, I have used picoscope 6, but I want to make some jobs automatically in the future.
In this time I am "Calibrating" my new software, by comparing measurement previously processed with picoscope 6 with the same process made in Matlab and I have some problems with the FFT amplitude.

1) Does someone knows what equations Picoscope use to calculate FFT? Looking some books, the spectrum's amplitude is N/2 times the peak amplitud of the time signal, with N = FFT size. However, if I make this calculation, my final value in matlab is different from that of the picoscope.

2)What scale factor could have the spectrum value?

3) What does Picoscope do if the fft size is different from the total samples?
If the fft size is shorter than the total samples, does it use only the first N samples or does it zero padding to complete a integer number of fft sizes ? (e.g. if I have 2000 samples and I use a fft size of 1024, does picoscope use the first 1024 samples or does it add 48 zeros and perform two fft of 1024 samples and average them (2000+48 = 2*1024) ?
if the fft size is longer than the total samples, does it add zeros to complete the fft size or simply reduce the fft size?
Thanks in advice! Any information is usefull!

Best regard!

Hitesh

Re: Equation used to calculated Spectrum

Post by Hitesh »

Hi marouxet,

You may wish to refer to the following tutorials and examples provided by The MathWorks:

http://uk.mathworks.com/help/matlab/mat ... m-fft.html

http://uk.mathworks.com/help/matlab/ref/fft.html

You will need Signal Processing Toolbox in order to perform obtain SNR, SINAD measurements etc.

Please note that Pico Technology is not responsible for the content of external third party sites.

I hope this helps.

Post Reply