class="resources"
Applies a flat top window to the input sequence X. Details Example

![]() |
X is the input signal. |
![]() |
Flattop{X} is the input signal with the Flat Top window applied. |
![]() |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
If y represents the output sequence Flattop{X}, the Flat Top Window VI obtains the elements of y from
yi = xi[0.21557895 0.41663158cos(w) + 0.277263158cos(2w) 0.083578947cos(3w) + 0.006947368cos(4w)]
for i = 0, 1, 2, , n 1
,
where n is the number of elements in X.
Refer to the Window Comparison VI in the labview\examples\analysis\windxmpl.llb directory for an example of using the Flat Top Window VI.