DRV_AOScale

INT32S DRV_AOScale (
    PTR_T DeviceHandle,
    PT_AOScale *lpAOScale );

Purpose

On the device indicated by the DeviceHandle, it converts the input float analog value into corresponding binary data according to the default analog output range configuration. By calling the DRV_AOConfig, the default analog output range configuration can be changed.

Parameters

Some parameters, such as target channel (chan), output current value (OutputValue), and raw binary data (BinData) are stored in the PT_AOScale structure pointed by the lpAOScale.

NameDirectionRangeDescription
DeviceHandle input default The pointer retrieved from the DRV_DeviceOpen which specifies the target device.
lpAOScale input / output default The pointer to indicate the user-prepared structure PT_AOScale that stores target channel ( INT16U chan), output current value (FP32 OutputValue), and raw binary data (INT16U *BinData).

Return

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