Window function – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 276

Section 7. Measurement Instructions
7-52
Parameter
& Data Type
Enter
FFTFILT PARAMETERS
FRef
Constant
Reference Frequency for Logarithmic rebinning. Set to 0 for linear or no rebinning.
SBin
Constant
For linear rebinning: the number of adjacent spectral bins to combine. For logarithmic
rebinning: the number of bins per octave in the rebinned spectrum. Set to 0 or 1 for no
rebinning. The DC component, bin 0, is left alone and not combined with other bins. Bin
combination starts with the first AC component. Combining bins is not allowed for the Real
and Imaginary or Amplitude and Phase spectral options.
ILow, IHigh
Constants
ILow and IHigh make it possible to return a subset of the spectrum that results from the
Spectral option and bin combining specified by the previous parameters. I is the bin number.
ILow is the number of first bin to return, IHigh the number of the last bin to return. To get all
the components set ILow equal to the lowest bin number and IHigh to the maximum bin
number. With linear spectral bins (Fref = 0), the lowest bin number is 0 and the highest bin
number is the integer portion of FFTLen/(2*Sbin). See the text for details and logarithmic
rebinning (Fref
≠0).
Window Function
TSWindow is a constant designating whether the CR9052 should apply a
window (also known as taper, or apodization) function to the time series
snapshot before performing the FFT. Typical window functions give more
weight to the middle of the time series while tapering the ends to avoid spectral
leakage caused by a non-integral number of periods of a repetitive signal in the
snapshot.
The CR9052 applies the selected window function by multiplying each point
of the original time series by the corresponding point of the window function.
Because this windowing process removes some of the original signal variation,
the CR9052 uses the following procedure to correct the resulting spectra.
The CR9052 first computes the mean and standard deviation of the original
time series for use in additional processing. Next, the CR9052 subtracts the
mean from each point of the original time series, and then multiplies the mean-
subtracted time series by the selected window function. The CR9052 then
computes the standard deviation of this windowed time series. The CR9052
then computes the FFT of the windowed time series, and multiplies each ac
component of the complex spectrum by the ratio of the standard deviations of
the time series computed before and after the window function was applied.
The CR9052 then sets the dc component of the spectrum to the mean of the
original time series, normalized for the FFT length.
The CR9052 computes the Hanning window function from:
⎟
⎠
⎞
⎜
⎝
⎛
−
−
1
2
cos
5
.
0
5
.
0
N
k
π
for
(
)
1
0
−
≤
≤
N
k
.
N
is the length of the original time series (FFTLen).