National Instruments 320571-01 用户手册

下载
页码 157
NI-DSP Analysis VI Reference 
Chapter 2
Part 3:  NI-DSP Function Reference
2-2
NI-DSP SRM for LabVIEW for Windows
Copy Mem(DSP to LV)
Copies an entire or partial buffer
of data according to the
entire/partial copy selector from
the Source buffer on the DSP
board that is referred to by a DSP
Handle Cluster to the destination
buffer in LabVIEW.
To copy data correctly from the
DSP board to LabVIEW, you
must indicate what type of data is
stored in the Source buffer on the DSP board.  You must set the destination type to the appropriate type and wire to
the corresponding destination terminal.  The VI has three destination types–float (32-bit), short (16-bit), and long
(32-bit).  To copy different types of data, you must wire to the appropriate destination terminal that corresponds to
the destination type you choose.  Remember, you must wire only one kind of destination terminal.
If you set the entire/partial copy selector to entire copy, all the data in the Source buffer will be copied back to the
destination without considering the values of offset and size.  Otherwise, only the number of size the data in the
Source buffer, starting from the offset, will be copied back to the destination.
entire/partial copy selector has two types:  entire copy and partial copy.  It defaults to entire copy.
0:  entire copy.
1:  partial copy.
Source is a DSP Handle Cluster that indicates the  memory buffer on the DSP board which contains the
data that you want copy to the destination in LabVIEW.
destination type indicates the type of the destination data on the DSP board.  It has three options:
0:  32-bit floating-point.
1:  16-bit short integer.
2:  32-bit long integer.
destination type defaults to 32-bit floating point.
offset indicates where to start to copy data from the Source buffer on the DSP board to the destination
buffer in the LabVIEW.  offset defaults to 0.  This parameter is ignored when entire/partial copy
selector
 is set to entire copy.
size indicates how much data to copy from the Source buffer on the DSP board to the destination buffer
in LabVIEW.  size defaults to 0.  If offset plus size is greater than the number of elements in the Source
buffer, the VI returns an error.  This parameter is ignored when entire/partial copy selector is set to
entire copy.
destination(float) is the terminal to which you should wire the destination buffer if the data you want to
copy is 32-bit floating-point data array.
destination(long) is the terminal to which you should wire the destination buffer if the data you want to
copy is 32-bit long data array.
destination(short) is the terminal to which you should wire the destination buffer if the data you want to
copy is 16-bit short data array.
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.