# BoardConfig.GetChanAIMode() method

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

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

## Function Prototype

VB .NET

Public Function GetChanAIMode(chan As Integer, ByRef AInputMode As MccDaq.AInputMode) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo GetChanAIMode(int chan, out MccDaq.AInputMode inputMode)

## Parameters

chan

The A/D input channel.

inputMode

Returns the current channel input mode set for the A/D channel. The inputMode setting is an MccDaq.AInputMode enumerated constant, and is set using the AChanInputMode() method. Valid values are single-ended or differential.

## Parameters

chan

Returns the channel number.

chanType

Returns the input channel type.

## Returns

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