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

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