AI_AsyncDblBufferTransfer Previous topicNext topicFirst topicLast topic

AI_AsyncDblBufferTransfer

@ Description

Depending on the continuous AI function selected, half of the data of the circular buffer will be logged into the user buffer (if continuous AI function is: AI_ContReadChannel, AI_ContReadMultiChannels and AI_ContScanChannels) or a disk file (if continuous AI function is: AI_ContReadChannelToFile, AI_ContReadMultiChannelsToFile and AI_ContScanChannelsToFile). You can execute this function repeatedly to return sequential half buffers of the data.

@ Cards Support

9111, 9112, 9113, 9114, 9118, 9812/10

@ Syntax
 
I16 AI_AsyncDblBufferTransfer (U16 CardNumber, U16 *Buffer)

@ Parameter

CardNumber : The card id of the card that performs the asynchronous double-buffered operation.
Buffer          : The user buffer. An integer array to which the data is to be copied. If the data will be saved into a disk file, this
                     argument is of no use. Please refer to Appendix C, AI Data Format for the data format in Buffer or the data file.

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered,
ErrorFuncNotSupport, ErrorNotDoubleBufferMode,
ErrorInvalidSampleRate