# v_in()

Reads an A/D input channel, and returns a voltage value. If the specified A/D board has programmable gain, then this function sets the gain to the specified range.

## Prototype

v_in(board_num, channel, ul_range, options=0)

## Parameters

board_num (int)

The number associated with the board when it was installed with InstaCal or created with create_daq_device().

channel (int)

A/D channel number. The maximum allowable channel depends on which type of A/D board is being used. For boards with both single-ended and differential inputs, the maximum allowable channel number also depends on how the board is configured.

ul_range (ULRange)

A/D Range code. If the board has a programmable gain, it will be set according to this parameter value. Keep in mind that some A/D boards have a programmable gain feature, and others set the gain via switches on the board. In either case, the range that the board is configured for must be passed to this function. Refer to board-specific information for a list of the supported A/D ranges of each board.

Options (int, optional)

Reserved for future use.

## Returns

- The value in volts of the A/D sample (float)