# a_in()

Reads an A/D input channel from the specified board, and returns a 16-bit unsigned integer value. If the specified A/D board has programmable gain, it sets the gain to the specified range. The raw A/D value is converted to an A/D value and returned.

## Prototype

a_in(board_num, channel, ul_range)

## Parameters

board_num (int)

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

channel (int)

The A/D input channel number.

ul_range (ULRange)

A/D Range code. If the selected A/D board does not have a programmable gain feature, this parameter is ignored. Otherwise, set to any range that is supported by the selected A/D board.

## Returns

- The A/D value (int)