# DioConfig.GetCurVal method

Gets the current value of digital outputs.

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

## Function Prototype

VB .NET

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

C# .NET

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

## Parameters

devNum

Number of the digital device.

configVal

Current value of the digital output.

## Returns

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