INT32S DRV_AOScale ( PTR_T DeviceHandle, PT_AOScale *lpAOScale );
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.
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.
| Name | Direction | Range | Description |
| 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). |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |