DI_AsyncDblBufferTransfer | ![]() ![]() ![]() ![]() |
DI_AsyncDblBufferTransfer
@ Description
Depending on the continuous DI function selected, half of the data of the circular buffer will be logged into the user buffer (if continuous DI function is: DI_ContReadPort) or a disk file (if continuous DI function is: DI_ContReadPortToFile). If the data will be saved in a file, the data is written to disk in binary format, with the lower byte first (little endian).You can execute this function repeatedly to return sequential half buffers of the data.
@ Cards Support
7200
@ Syntax
I16 DI_AsyncDblBufferTransfer (U16 CardNumber, void *Buffer)
@ Parameter
CardNumber : The
card id of the card that performs the asynchronous double-buffered operation.
Buffer : The user
buffer to which the data is to be copied. If the data will be saved into
a disk file, this argument is of no use.
@ Return Code
NoError, ErrorInvalidCardNumber,
ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorNotDoubleBufferMode