AO_VWriteChannel | ![]() ![]() ![]() ![]() |
AO_VWriteChannel
@ Description
Accepts a voltage value, scales it to the proper binary value and writes a binary value to the specified analog output channel.
@ Cards Support
9111, 9112, 9118, 6208V/16V/08A, 6308V/08A
@ Syntax
I16 AO_VWriteChannel (U16 CardNumber, U16 Channel, F64 Voltage)
Visual Basic
AO_VWriteChannel (ByVal CardNumber As Integer, ByVal Channel As Integer, ByVal Voltage As Double) As Integer
@ Parameter
CardNumber : The
card id of the card that want to perform this operation.
Channel : The analog
output channel number.
Range: 0 or 1 for PCI-9112/cPCI-9112
Range: 0 for PCI-9111
Range: 0 or 1 for PCI-9118
Range: 0 through 7 for PCI-6208V/08A
Range: 0 through 15 for PCI-6216
Range: 0 through 7 for PCI-6308V/08A
Voltage : The value to
be scaled and written to the analog output channel. The range of voltages
depends on the type of device, on
the output polarity, and on the voltage reference (external or internal).
@ Return Code
NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidIoChannel, ErrorDaVoltageOutOfRange