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

下载
页码 157
NI-DSP Analysis VI Reference 
Chapter 2
Part 3:  NI-DSP Function Reference 
2-44
NI-DSP SRM for LabVIEW for Windows
DSP Index Memory
Indexes into a DSP buffer
allocated in the memory
space of the specified DSP
board.  The return value is
another DSP Handle Cluster.
This VI does not allocate
memory.
In order to index into a buffer
correctly, you need to indicate
what type of data is in the DSP
buffer.  You must set data type to the appropriate type.  data type has two options–4 bytes (for 32-bit long and
floating-point data) and 2 bytes (for 16-bit short data).
DSP Handle Cluster is a DSP Handle Cluster into which you want to index.
data type indicates the type of data in the buffer on the DSP board that is referred to by DSP Handle
Cluster
.  data type has two options:
0:  4 bytes (for 32-bit long and floating-point data).
1:  2 bytes (for 16-bit short data).
data type defaults to 4 bytes.
offset is the index where to start to index into the array referenced by DSP Handle Cluster.  offset
defaults to 0.
Indexed DSP Handle Cluster is a DSP Handle Cluster that contains the number of size data in DSP
Handle Cluster
 starting from offset.
Notes:
If you free a DSP Handle Cluster using the DSP Free Memory VI, then all other DSP Handle
Clusters obtained by using DSP Index Memory VI will no longer be valid.
This VI returns a new DSP Handle Cluster.  If you no longer need this DSP Handle Cluster,
remember to free it.
size indicates how many elements you want to index starting from the offset.  size defaults to 0.
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.