Instruction manual
AMPDIO DRIVERS
Page 102
See Also TCgetInterruptThreadPriority
enableInterrupts
6.4.4 Data Buffer Functions
6.4.4.1 Allocate a Short Integer Data Buffer — allocateIntegerBuf
Creates a data buffer, by allocating a block of memory of short integer (16-bit) data. The
function returns a Buffer Handle (>= 0). The Buffer Handle must be used in any subsequent
function calls to identify that particular data buffer.
b = allocateIntegerBuf (nItems)
where nItems long: number of data items to be allocated. If
there is insufficient memory available for the
size of the buffer, an error is returned.
Returns short: Buffer Handle (>= 0). This handle must be used in all subsequent
function calls to identify the buffer.
or ERRSUPPORT
ERRMEMORY
Prior Calls none
See Also freeIntegerBuf
6.4.4.2 Allocate a Long Integer Data Buffer — allocateLongBuf
Creates a data buffer, by allocating a block of memory of long integer (32-bit) data. The
function returns a Buffer Handle (>= 0). The Buffer Handle must be used in any subsequent
function calls to identify that particular data buffer. A long integer data buffer is required by the
function TCsetEventRecorder
b = allocateLongBuf (nItems)
where nItems long: Number of data items to be allocated. If
there is insufficient memory available for the
size of the buffer, an error is returned.
Returns short: Buffer Handle (>= 0). This handle must be used in all subsequent
function calls to identify the buffer.
or ERRSUPPORT
ERRMEMORY
Prior Calls none
See Also freeLongBuf
6.4.4.3 Free up a Short Integer Data Buffer — freeIntegerBuf
Frees a block of memory previously allocated for the given data buffer by the
allocateIntegerBuf function.