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

下载
页码 157
Chapter 2 NI-DSP Analysis VI Reference
NI-DSP SRM for LabVIEW for Windows 2-72 Part 3:  NI-DSP Function Reference
DSP Sine Pattern
Generates an array containing a sinusoidal
pattern.  If the Sine Pattern is represented
by the sequence Y, the pattern is
generated according to the following
formula:
y
i
  =  a sin(x
i
) ,
for  i = 0, 1, 2, …, n-1 ,
where x
i
  =  
2
π
i k
n
  +  
π
 ø
o
180
 ,
a is the amplitude,
k is the number of cycles in the pattern,
ø
o
 is the initial phase in degrees, and
n is the number of elements in Sine Pattern.
amplitude defaults to 1.0.
phase defaults to 0.0.
Note: phase must be in degrees rather than radians.  If phase is in radians, make sure you convert it to
degrees, as shown in the following figure, before using the Sine Pattern VI.
cycles defaults to 1.0.
Note: Because cycles is a floating-point number, fractional cycles are possible for the Sine Pattern.
Furthermore, setting cycles to a negative number does not generate an error condition because it
is mathematically correct and useful to consider negative frequencies in Fourier and spectral
analysis.
Sine Pattern in is a DSP Handle Cluster that indicates the memory buffer on the DSP board that will
contain the output sine pattern.
Sine Pattern out is a DSP Handle Cluster that is identical to Sine Pattern in, but with the generated
pattern already stored in the memory buffer on the DSP board.  The largest sine pattern that can be
generated depends upon the amount of memory on your 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.