AO_9112_Config Previous topicNext topicFirst topicLast topic

AO_9112_Config

@ Description

Informs PCIS-DASK library of the reference voltage source (internal or external) and the reference voltage value selected for an analog output channel of PCI9112. You can configure each channel to use an internal reference of -5V (default) or -10V or an external reference (-10V ~ +10V) by setting related jumpers. You must call this function before calling function to perform voltage output operation.

@ Cards Support

9112

@ Syntax

I16 AO_9112_Config (U16 CardNumber, U16 Channel, F64 refVoltage)

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
Channel    : The AO channel number configured.
refVoltage : Voltage reference value.
                  If the D/A reference voltage source your device use is internal reference, the valid values for refVoltage is -5 and -10.
                  If the D/A reference voltage source your device use is external reference, the valid range for refVoltage is -10 to +10.
 
Note : If the -10V D/A reference voltage is selected, the D/A output range is 0V~10V. On the other hand, if the +10V is selected, the D/A output range is -10V~0V. 

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidDaRefVoltage