# DioConfig.GetNumBits() method

Gets the number of bits in the digital port.

Member of the cDIOConfig class. Accessible from the MccBoard.DioConfig property.

## Function Prototype

VB NET

Public Function GetNumBits(ByVal devNum As Integer, ByRef configVal As Integer) As MccDaq.ErrorInfo

C# ..NET

public MccDaq.ErrorInfo GetNumBits(int devNum, out int configVal)

## Parameters

devNum

Number of the digital device.

configVal

Number of bits in the digital port.

## Returns

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