INT32S DRV_MAIVoltageIn ( PTR_T DeviceHandle, PT_MAIVoltageIn * lpMAIVoltageIn );
On the device indicated by the DeviceHandle, it reads back the current value from specific AI (Analog Input) channels and returns a list of converted voltage value.
Some parameters, such as sampling channels (StartChan and NumChan), GainCode list (GainArray), triggering mode (TrigMode) and result voltage values (VoltageArray), are stored in the PT_MAIVoltageIn, structure pointed by thelpMAIVoltageIn.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpMAIVoltageIn | input / output | default | The pointer to indicate the structure PT_MAIVoltageIn that stores sampling channels (INT16U NumChan and INT16U StartChan), GainCodes etc. |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |