INT32S DRV_FAOScale( PTR_T DeviceHandle, PT_FAOScale * lpFAOScale );
Converts the float data into binary data using the current FAO (Fast Analog Output) configuration settings. Those data can be used to produce voltage values through FAO channels.
Some parameters, such as specified FAO channel (chan) sampling data count (count), floating input voltage (VoltArray) and binary data (BinArray), are stored in the PT_FAOScale, structure pointed by the lpFAOScale.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpFAOScale | input / output | default | The pointer to indicate the user-prepared structure PT_FAOScale that stores specified FAO channel (INT16U chan) sampling data count (INT32U count), floating input voltage (FP32 *VoltArray) and binary data (INT16U *BinArray). |
| 1. 0 | Successful. |
| 2. InvalidDriverHandle | The DriverHandle is NULL. |
| 3. InvalidCountNumber | The sampling data count (count of lpFAIIntStart) is wrong. It must be above zero, an even number (because of memory alignment and performance), or a multiple of half the FIFO size (refer to DRV_GetFIFOSize) if FIFO is used. |
| 4. FunctionNotSupported | This function is not supported by this device. |