# BoardConfig.SetDACRange()

Sets the DAC range for a specified analog output channel.

Member of the cBoardConfig class. Accessible from the MccBoard.BoardConfig property.

## Function Prototype

VB .NET

Public Function SetDACRange(ByRef chan As Integer, ByRef range As MccDaq.Range) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SetDACRange(Range range, int chan)

## Parameters

chan

The channel number.

range

D/A range code. All range settings are MccDaq.Range enumerated constants. If the selected DAC board does not have a programmable range feature, this parameter is ignored. Otherwise, set the range parameter to any range that is supported by the selected DAC board. Refer to board-specific information for a list of the supported ranges.

## Returns

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