DataWindow (FPScript)
Creates a uniformly spaced data taper of a given size.
Syntax
DataWindow(Length, Window [ , Adjustment ])
The syntax of the DataWindow function consists of the following parts:
Part |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Length |
The length of the window. Permitted data structures are scalar value. All integral data types are permitted. The value must be greater or equal to 2. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Window |
The fixed or adjustable data window to be applied to the data. The argument Window can have the following values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Adjustment |
The one-sided Fourier width as a multiple of the frequency interval. The valid range is window specific within 1.0 to 6.0. The default is 1.5 for a tapered cosine window and 3.0 for all other adjustable data windows. Permitted data structures are scalar value. All real data types are permitted. |
Remarks
The result is a data series with the specified window. You can then apply that window to a time-domain signal with the same length with a simple multiplication.
If an argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.
Available in
Option Spectral Analysis
Examples
DataWindow(100, WIN_FLATTOP)
Generates a FlatTop window with 100 values. This window is appropriate for exact measurement of peaks in amplitude spectra.