DRV_AIScale

INT32S DRV_AIScale (
   PTR_T DeviceHandle,
   PT_AIScale * lpAIScale );

Purpose

Converts the binary raw data, which is usually retrieved from the DRV_AIBinaryIn, into its corresponding voltage or any other desired analog value.

Parameters  

Some parameters, such as maximum analog input value (MaxVolt), digital count range (MaxCount), zero point offset (offset), input digital value (reading) and return analog value (voltage), are stored in the PT_AIScale structure pointed by the lpAIScale.

Name Direction Range Description
DeviceHandle input default The pointer retrieved from the DRV_DeviceOpen which specifies the target device.
lpAIScale input / output default The pointer to indicate the structure PT_AIScale that stores maximum analog input value (FP32 MaxVolt), digital count range (INT16U MaxCount), etc.

Return

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