# cbAChanInputMode()

Sets the analog input mode for a specified A/D channel.

## Function Prototype

C/C++

int cbAChanInputMode(int Chan, int InputMode)

Visual Basic

Function cbAChanInputMode(ByVal BoardNum&, ByVal Chan&, ByVal InputMode&) 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.

Chan

The A/D input channel.

InputMode

The channel input mode. Set to either DIFFERENTIAL or SINGLE_ENDED.

## Returns

- Error code or 0 if no errors
- InputMode: the A/D channel input mode.