INT32S DRV_FAICheck ( PTR_T DeviceHandle, PT_FAICheck *lpFAICheck );
On the device indicated by the DeviceHandle, it retrieves the current status of FAI (Fast Analog Input) operations. The return status contains operation running status (running/stopped or complete/incomplete), buffer overrun status (overrun/not overrun) and sampling buffer status (not ready: 0, first half ready: 1, second half ready: 2).
This function is usually used to know when and which part's data of the sampling buffer is ready to be sent to user¡¯s buffer by the DRV_FAITransfer.
Some parameters, such as running status (Stopped), converted data count (retrieved), overrun status (overrun) and buffer status (HalfReady), are stored in the PT_FAICheck, structure pointed by the lpFAICheck.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpFAICheck | output | default | The pointer to indicate structure PT_FAICheck that stores running status (INT16U stopped), overrun status (INT16U overrun), converted data count (INT32U retrieved) and sampling buffer status (INT16U HalfReady). |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |
¡¡