DI_AsyncMultiBufferNextReady Previous topicNext topicFirst topicLast topic

DI_AsyncMultiBufferNextReady

@ Description

Checks whether the next buffer of data in circular buffer is ready for transfer during an asynchronous multi-buffered digital input operation. The return BufferId is the index of the most recently available (newest available) buffer.

@ Cards Support

7300A

@ Syntax

I16 DI_AsyncMultiBufferNextReady (U16 CardNumber, BOOLEAN *NextReady, U16 *BufferId)

@ Parameter

CardNumber : The card id of the card that performs the asynchronous multi-buffered operation.
NextReady : Whether the next half buffer of data is available. If NextReady = TRUE, you can handle the data in the buffer.
                  (constants TRUE and FALSE are defined in DASK.H)
BufferId : Returns the index of the ready buffer.

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport