# cbVOut()

Sets the voltage value of a D/A channel. This function cannot be used for current output.

## Function Prototype

C/C++

int cbVOut(int BoardNum, int Channel, int Range, float DataValue, int Options);

Visual Basic

Function cbVOut(ByVal BoardNum&, ByVal Channel&, ByVal Range&, ByVal DataValue!, ByVal Options&) As Long

## Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99. The specified board must have a D/A.

Channel

The D/A channel number. The maximum allowable channel depends on which type of D/A board is being used.

Range

The D/A range code. If the device has a programmable gain, it is set according to this argument value. If the range specified isn't supported, the function return a BADRANGE error.

If the gain is fixed or manually selectable, make sure that this argument matches the gain configured for the device. If it doesn't, the output voltage will not match the voltage specified in the DataValue argument.

DataValue

The voltage value to be written.

Options

Reserved for future use.

## Returns

- Error code or 0 if no errors

### options parameter values

Default | Reserved for future use.