INT32S DRV_MAIBinaryIn ( PTR_T DeviceHandle, PT_MAIBinaryIn * lpMAIBinaryIn );
On the device indicated by the DeviceHandle, it reads back the current value from specific AI (Analog Input) channels and returns a list of unconverted raw data. The DRV_AIScale can be used to convert the binary raw data into its corresponding voltage or any other desired analog value.
Some parameters, such as configuring channels (StartChan and NumChan), triggering mode (TrigMode) and return raw data (ReadingArray), are stored in the PT_MAIBinaryIn structure pointed by the lpMAIBinaryIn.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpMAIBinaryIn | input / output | default | The pointer to indicate the structure PT_MAIBinaryIn that stores configuring channels (INT16U NumChan and INT16U StartChan), triggering mode (INT16U TrigMode) and return raw data (INT16U *ReadingArray). |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |