INT32S DRV_AOVoltageOut( PTR_T DeviceHandle, PT_AOVoltageOut *lpAOVoltageOut );
On the device indicated by the DeviceHandle, it changes the output voltage status of an AO (Analog Output) channel by setting a float voltage value.
This function is implemented by first calling the DRV_AOScale and then calling the DRV_AOBinaryOut.
Some parameters, such as target channel (chan) and output voltage value (outputValue), are stored in the PT_AOVoltageOut, structure pointed by the lpAOVoltageOut.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpAOVoltageOut | input / output | default | The pointer indicates the user-prepared structure PT_AOVoltageOut that stores target channel (INT16U chan) and output voltage value (FP32 OutputValue). |
| 1. 0 | Successful. |
| 2. Other value | Please reference ErrorCodes |