Software Transferring

Single Channel One-Shot Output

The DRV_AOVoltageOut function is called for voltage output and the DRV_AOCurrentOut function for current output.
The calling flows of single channel analog output are as shown below.

 

[Figure-1] show the old method that how to make a voltage out, this method only can be used to make a voltage out.

 

[Figure-2] show the new method that how to make a current or voltage out, the new method is recommend. You must set the output type(current or voltage) and output range by using the DRV_DeviceSetProperty function with the property CFG_AoChanRange, at runtime before the DRV_AOVoltageOut or DRV_AOCurrentOut function is called.

 

The DRV_AOVoltageOut function accepts a floating-point voltage value, scales it to a proper binary number, and writes that number to an analog output channel to change the output voltage.  If you choose the old method that show in Figure-1, you must set the output range by using the DRV_AOConfig function at runtime.

 

The Device Driver also provides a binary data output function, the DRV_AOBinaryOut. It accepts a binary value and writes it to an analog output channel. Use the DRV_AOScale function to convert the desired analog output value into a binary value. Use the DRV_AOBinaryOut function to output the value.

Besides the DRV_AOVoltageOut function, the DRV_AOCurrentOut function may be used for current output.

Multiple Channel Synchronous Output

You can combine DRV_EnableSyncAO, DRV_AOVotageOut/DRV_AOCurrentOut and DRV_WriteSyncAO to perform multiple channel synchronous analog output.

The calling flow of multiple channel synchronous output is shown below.

 

 

The DRV_EnableSyncAO function enables the synchronized output operation. You can then call the DRV_AOVoltageOut function repeatedly to set the voltage value for each output channel. Finally, write the output values to all channels synchronously by using the DRV_WriteSyncAO function.

Besides the DRV_AOVoltageOut function, you can use the DRV_AOCurrentOut function for current output.