# DioConfig.GetConfig() method

Gets the configuration of a digital device (digital input or digital output).

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

## Function Prototype

VB .NET

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

C# .NET

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

## Parameters

devNum

Number of the digital device.

configVal

Current configuration (1 = DigitalOut, 2 = DigitalIn).

## Returns

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