INT32S DRV_AIBinaryIn ( PTR_T DeviceHandle, PT_AIBinaryIn * lpAIBinaryIn );
On the device indicated by the DeviceHandle, it reads back the binary raw data from an AI (Analog Input) channel. The DRV_AIScale can be used to convert the binary raw data into corresponding voltage.
Some parameters, such as target channel (chan), triggering mode (TrigMode) and return raw data (reading), are stored in the PT_AIBinaryIn, structure pointed by the lpAIBinaryIn.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpAIBinaryIn | input / output | default | The pointer to indicate the structure PT_AIBinaryIn that stores target channel (INT16U chan), triggering mode (INT16U TrigMode) and return raw data (INT16U *reading). |
| 1. 0 | Successful. |
| 2. Other value | Please reference ErrorCodes |