National Instruments Car Stereo System 320571-01 用户手册

下载
页码 157
NI-DSP Analysis VI Reference 
Chapter 2
Part 3:  NI-DSP Function Reference 
2-36
NI-DSP SRM for LabVIEW for Windows
DSP General Cosine Window
Applies a general cosine window to the input
sequence X.  If A represents the Cosine
Coefficients
 input sequence and Y represents
the output sequence GenCos{X}, the elements
of Y are obtained using the formula:
y
i
  =  x
i
 
k=0
m-1
 (-1)
k
 a
k
 cos (kw)
for  i = 0, 1, 2, … , n-1
w  =  
2
π
i
n
  ,
where n is the number of elements in X, and
m is the number of elements in Cosine Coefficients.
X is a DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the input
signal array.
Note: The operation is performed in place and the input array is overwritten by the output
GenCos {X}.
Cosine Coefficients is a DSP Handle Cluster that indicates the memory buffer on the DSP board that
contains the cosine coefficients.
GenCos {X} is a DSP Handle Cluster that is identical to X, but with the results of GenCos {X} already
stored in the memory buffer on the DSP board.
error in (no error) contains the error information from a previous VI.  If an error occurs, it is passed out
error out and no other calls are made.
error out contains the error information for this call.