DRV_MAIConfig

INT32S DRV_MAIConfig (
   PTR_T DeviceHandle,
   PT_MAIConfig * lpMAIConfig );

Purpose

On the device indicated by the DeviceHandle, it configures specific AI (Analog Input) channels' input voltage ranges by setting the corresponding GainCode. Please refer to the corresponding Hardware Manual for detailed information on input voltage range and the corresponding GainCode.

Parameters

Some parameters, such as configuring channels (StartChan and NumChan) and GainCode list (GainArray), are stored in the PT_MAIConfig, structure pointed by the lpMAIConfig.

Name Direction Range Description
DeviceHandle input default The pointer retrieved from the DRV_DeviceOpen which specifies the target device.
lpMAIConfig input / output default The pointer to indicate the user-prepared structure PT_MAIConfig that stores configuring channels (INT16U StartChan and INT16U NumChan) and configuring GainCodes (INT16U *GainArray).

Return

   1. 0 Successful.
   2. other value Please reference ErrorCodes