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

下载
页码 157
Chapter 2 NI-DSP Analysis VI Reference
NI-DSP SRM for LabVIEW for Windows 2-6 Part 3:  NI-DSP Function Reference
DSP Allocate Memory
Allocates a block of memory buffer on
the DSP board specified by slot and
returns a DSP Handle Cluster that
contains the coded DSP board memory
and the number of elements in this
buffer.
The number of bytes allocated for this
buffer depends on size and
bytes/element selector.  If bytes/element selector selects 4 bytes, then the number of bytes = size*4. If
bytes/element selector selects 2 bytes, then the number of bytes = size*2.
The allocation routines on the board assure alignment to the nearest 4-byte boundary 
 number of bytes to guarantee
memory alignment on 4-byte addresses.  For example, if you request to allocate a buffer of size 1,022 or 1,024 bytes,
the allocation routines allocate 1,024 bytes in both cases.
slot is the board ID number.  slot defaults to 3.
size is the number of elements to allocate for this buffer.  size defaults to 0.
bytes/element selector specifies the number of bytes per element.  It has two options:
0:  4 bytes.
1:  2 bytes.
bytes/element selector defaults to 4 bytes.
DSP Handle Cluster indicates the allocated 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.