INT32S DRV_AIVoltageIn ( PTR_T DeviceHandle, PT_AIVoltageIn * lpAIVoltageIn );
On the device indicated by the DeviceHandle, it reads back the current voltage from an AI (Analog Input) channel .
This function can be implemented by first calling the DRV_AIBinaryIn and then the DRV_AIScale.
Some parameters, such as target channel (chan), GainCode (gain), triggering mode (TrigMode) and return voltage (voltage), are stored in the PT_AIVoltageIn, structure pointed by the lpAIVoltageIn.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from DRV_DeviceOpen which specifies the target device. |
| lpAIVoltage | input / output | default | The pointer to indicate the structure PT_AIVoltageIn that stores target channel (INT16U chan), GainCode (INT16U gain) etc. |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |