# BoardConfig.SetNumAdChans()

Sets the number of A/D channels available on the board.

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

## Function Prototype

VB .NET

Public Function SetNumAdChans(ByVal configVal As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SetNumAdChans(int configVal)

## Parameters

configVal

Sets the number of A/D channels on the board. Check board-specific info for valid numbers. Note that this setting affects the single-ended/differential input mode of boards for which this setting is programmable.

## Returns

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