# BoardConfig.SetAIChanType()

Sets the analog input mode for a specified channel.

Member of the cBoardConfig class. Accessible from the MccBoard.BoardConfig property.

## Function Prototype

VB .NET

Public Function SetAIChanType(ByRef chan As Integer, ByRef chanType As MccDaq.AIChanType) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SetAIChanType(AIChanType chanType, int chan)

## Parameters

chan

The channel number.

chanType

Specifies the input mode. Set it to one of the constants listed in the chanType parameter values section below.

## Returns

- An ErrorInfo object that indicates the status of the operation.

### chanType parameter values

All of the chanType settings are MccDaq.AIChanType enumerated constants. To set a variable to one of these constants, you must refer to the MccDaq object and the AIChanType enumeration (variable = MccDaq.AIChanType.Current, variable = MccDaq.AIChanType.Resistance_1k2w, and so on.)

Input Mode | Description
Current | Current mode, ±25 mA
Full_Bridge_62Pt5mVV | Full-bridge mode, ±62.5 mV/V
Full_Bridge_7Pt8mVV | Full-bridge mode, ±7.8 mV/V
Half_Bridge | Half-bridge mode, 500 mV/V
Quart_Bridge_120Ohm | Quarter-bridge mode, 120 Ω
Quart_Bridge_350Ohm | Quarter-bridge mode, 350 Ω
Resistance_10k2w | 2-wire Resistance mode, 10 kΩ
Resistance_10k4w | 4-wire Resistance mode, 10 kΩ
Resistance_1k2w | 2-wire Resistance mode, 1 kΩ
Resistance_1k4w | 4-wire Resistance mode, 1 kΩ
RTD_1000Ohm_3w | 3-wire RTD mode, 1000 Ω
RTD_1000Ohm_4w | 4-wire RTD mode, 1000 Ω
RTD_100Ohm_3w | 3-wire RTD mode, 100 Ω
RTD_100Ohm_4w | 4-wire RTD mode, 100 Ω
Thermocouple | Thermocouple mode, ±125 mV
Voltage | Voltage mode, ±60 V, ±15 V, ±4 V, ±1 V, ±1.25 mV