# DioConfig.GetDevType() method

Gets the device type of the digital port (AUXPORT, FIRSTPORTA, and so on).

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

## Function Prototype

VB .NET

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

C# .NET

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

## Parameters

devNum

Number of the digital device.

configVal

Constant that indicates the type of device (AUXPORT, FIRSTPORTA, etc.).

## Returns

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