INT32S DRV_AIConfig ( PTR_T DeviceHandle, PT_AIConfig *lpAIConfig );
On the device indicated by the DeviceHandle, it configures an AI (Analog Input) channel’s input voltage range by setting the corresponding GainCode. Please refer to the corresponding Hardware Manual for detailed information on input voltage range and the corresponding GainCode.
Some parameters, such as target channel (DasChan) and GainCode (DasGain), are stored in the PT_AIConfig, structure pointed by the lpAIConfig.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpAIConfig | input | default | The pointer to the structure PT_AIConfig that stores the target channel (INT16U DasChan) and the GainCode (INT16U DasGain). |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |