National Instruments 320571-01 用户手册

下载
页码 157
NI-DSP Analysis VI Reference 
Chapter 2
Part 3:  NI-DSP Function Reference 
2-69 NI-DSP SRM for LabVIEW for Windows
DSP Sawtooth Pattern
Generate a sawtooth pattern with
positive-slope, zero-crossing at
sample delay.  If the sawtooth
pattern is represented by the
sequence Y, then the pattern is
generated according to the
following formula:
y
i
 = 
 

2a
T
 k            if 0 
 k <    
 
T
2
 
2a
T
 (k -T)    
 
if  
T
2
 
 k < T
    for  i = 0, 1, 2, ..., n - 1
where k = (i - d) modulo T     and       T =  
n
cycles
,
d is the delay, and
n is the number of elements in the sawtooth pattern.
amplitude defaults to 1.0.
delay defaults to 0.
cycle defaults to 1.0.
Sawtooth in is a DSP Handle Cluster that indicates the memory buffer on the DSP board that will
contain the output sawtooth pattern.
Sawtooth out is a DSP Handle Cluster that is identical to Sawtooth in, but with the generated pattern
already stored in the memory buffer on the DSP board.  The largest sawtooth 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.