# CtrConfig.GetCtrType()

Gets the value that indicates the counter type.

Member of the cCtrConfig class. Accessible from the MccBoard.CtrConfig property.

## Function Prototype

VB .NET

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

C# .NET

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

## Parameters

devNum

Number of the counter device.

configVal

Returns the counter type, where: 1 = 8254, 2 = 9513, 3 = 8536, 4 = 7266, 5 = event counter, 6 = scan counter, 7 = timer counter, 8 = quadrature counter, and 9 = pulse counter.

## Returns

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