Instruction manual

Table Of Contents
PC215E Page 62
6.6.3 Data Buffer Functions
6.6.3.1 Allocate an Integer Data Buffer - allocateIntegerBuf
Creates a data buffer, by allocating a block of memory of integer data. The function
returns a Buffer Handle (positive integer). Up to four integer data buffers can be created.
The Buffer Handle must be used in any subsequent function calls to identify that
particular data buffer. Two integer data buffers are required by the function
DIOsetBiDirectionalBus
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 Integer:
Buffer Handle (positive integer). This handle must be used in all
subsequent function calls to identify the buffer.
or ERRSUPPORT
ERRMEMORY
Prior Calls registerBoard
See Also freeIntegerBuf
6.6.3.2 Allocate a Long Integer Data Buffer - allocateLongBuf
Creates a data buffer, by allocating a block of memory of long integer data. The function
returns a Buffer Handle (positive integer). Up to four long data buffers can be created.
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 Integer:
Buffer Handle (positive integer). This handle must be used in all
subsequent function calls to identify the buffer.
or ERRSUPPORT
ERRMEMORY
Prior Calls registerBoard
See Also freeLongBuf