AO_VoltScale Previous topicNext topicFirst topicLast topic

AO_VScale

@ Description

Scales a voltage to a binary value.

@ Cards Support

9111, 9112, 9118, 6208V/16V/08A, 6308V/08A

@ Syntax

I16 AO_VoltScale (U16 CardNumber, U16 Channel, F64 Voltage, I16 *binValue)

Visual Basic

AO_VScale (ByVal CardNumber As Integer, ByVal Channel As Integer, ByVal Voltage As Double, binValue As Integer) 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-6216V
               Range: 0 through 7 for PCI-6308V/08A
Voltage   : Voltage, in volts, to be converted to a binary value
binValue : the converted binary value returned

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidIoChannel. ErrorDaVoltageOutOfRange