# BoardConfig.SetTempAvg()

Sets the number of samples per average to convert to temperature.

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

## Function Prototype

VB .NET

Public Function SetTempAvg(ByRef configVal As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SetTempAvg(int configVal)

## Parameters

configVal

The number of samples per average. Valid values are 1 to 16384 when SetTempRejFreq() is off (0), and 16 to 16384 when SetTempRejFreq() is on (50 or 60).
When set to 50 or 60, data is over-sampled during one cycle of either 50 Hz or 60 Hz for a high level of 50 Hz or 60 Hz rejection.
When specified, multiple readings are acquired, averaged, and converted to temperature.

## Returns

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