Download ATS-SDK - AlazarTech
Transcript
ATS-SDK Programmer’s Guide 3.2.57 AlazarPostAsyncBuffer Add a buffer to the end of a list of buffers available to be filled by the board. Use AlazarWaitAsyncBufferComplete to determine if the board has received sufficient trigger events to fill this buffer. Syntax C/C++ RETURN_CODE AlazarPostAsyncBuffer ( HANDLE BoardHandle, void *Buffer, U32 BufferLength ); VisualBasic AlazarPostAsyncBuffer( _ ByVal BoardHandle As Integer, _ ByRef Buffer As Any, _ ByVal BufferLength As Long _ ) As Long Parameters BoardHandle [in] Handle to board. Buffer [out] Pointer to a buffer to receive sample data from the digitizer board. BufferLength [in] Specifies the length of the buffer in bytes. Return values If the function succeeds in adding the buffer to end of the list of buffers available to be filled by the board, it returns ApiSuccess (512). Use AlazarWaitAsyncBufferComplete to determine when the board has received sufficient trigger events to file this buffer. If the function fails, it returns an error code that indicates the reason that it failed. See Table 2 for a list of error codes. Remarks You must call AlazarBeforeAsyncRead before calling AlazarPostAsyncBuffer. You must call AlazarAbortAsyncRead before your application exits if you have called AlazarPostAsyncBuffer, and buffers are pending when your application exits. © 2003-2013 Alazar Technologies Inc. 167