National Instruments 320571-01 用户手册

下载
页码 157
Chapter 2 NI-DSP Analysis VI Reference
NI-DSP SRM for LabVIEW for Windows 2-70 Part 3:  NI-DSP Function Reference
DSP Set
Set the elements of the input array X to the
constant value set value.  If the output Set {X}
is represented by the sequence Y, then:
y
 =  set value
for  i = 0, 1, 2, …, n-1 ,
where n is the number of elements in X.
X is a DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the input
signal array X.  The operation is performed in place; that is, the input X is overwritten by the output
Set {X}.
set value defaults to 0.0.
Set {X} is a DSP Handle Cluster that is identical to X, but with the set {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.
DSP Shift
Shifts the elements in the input array X,
replacing the new values with zeros.  The
number of shifts selected can be in the
positive (right) or negative (left) direction.
X is a DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the input
signal array X.
# of shifts defaults to 0.
Shifted {X} in is a DSP Handle Cluster that indicates the memory buffer on the DSP board that will
contain the output array of shifted {X}.
Shifted {X} out is a DSP Handle Cluster that is identical to Shifted {X} in, but with the
shifted {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.
The operation can be performed in place; that is, the input and output arrays can be the same DSP Handle Cluster.
Parameter Discussion
Shifting can be performed right or left by setting # of shifts  to a positive or negative value, respectively.  If # of
shifts 
 is greater than n, ( n is the number of elements of input array X ), the outputs are all zero.