AI_AsyncCheck Previous topicNext topicFirst topicLast topic

AI_AsyncCheck

@ Description

Check the current status of the asynchronous analog input operation.

@ Cards Support

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

@ Syntax

I16 AI_AsyncCheck (U16 CardNumber, BOOLEAN *Stopped, U32 *AccessCnt)

@ Parameter

CardNumber : The card id of the card that performs the asynchronous operation.
Stopped      : Whether the asynchronous analog input operation has completed. If Stopped = TRUE, the analog input operation
                     has stopped. Either the number of A/D conversions indicated in the call that initiated the asynchronous analog input
                     operation has completed or an error has occurred. If Stopped = FALSE, the operation is not yet complete. (constants
                    TRUE and FALSE are defined in DASK.H)
AccessCnt :  In the condition that the trigger acquisition mode is not used, AccessCnt returns the number of A/D data that has
                    been transferred at the time calling AI_AsyncCheck(). If any trigger mode is enabled by calling AI_9111_Config(),
                    AI_9812_Config(), or AI_9118_Config(), and double-buffered mode is enabled, AccessCnt returns the next position
                    after the position the last A/D data is stored in the circular buffer at the time calling AI_AsyncCheck().

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport