# AIn32()

Reads an A/D input channel from the specified board, and returns a 32-bit integer value. If the specified A/D board has programmable gain then it sets the gain to the specified range. The raw A/D value is converted to an A/D value and returned to DataValue. In general, this function should be used with devices with a resolution higher than 16-bits.

Member of the MccBoard class.

## Function Prototype

VB .NET

Public Function AIn32(ByVal channel As Integer, ByVal range As MccDaq.Range, ByRef dataValue As Integer, ByVal options As Integer) As MccDaq.ErrorInfo

Public Function AIn32(ByVal channel As Integer, ByVal range As MccDaq.Range, ByRef dataValue As UInteger, ByVal options As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo AIn32(int channel, MccDaq.Range range, out uint dataValue, int options)

public MccDaq.ErrorInfo AIn32(int channel, MccDaq.Range range, out int dataValue, int options)

## Parameters

channel

A/D channel number. The maximum allowable channel depends on which type of A/D board is being used. For boards with both single ended and differential inputs, the maximum allowable channel number also depends on how the board is configured. For example, a USB-2416 device has 16 differential or 32 single-ended analog input channels. Expansion boards also support this method, so this parameter can contain values up to 272. See board specific information for EXP boards if you are using an expansion board.

range

A/D range code. If the selected A/D board does not have a programmable gain feature, this parameter is ignored. If the A/D board does have programmable gain, set the range parameter to the desired A/D range. Refer to board specific information for a list of the supported A/D ranges of each board.

dataValue

Pointer or reference to data value.

options

Reserved for future use.

## Returns

- An ErrorInfo object that indicates the status of the operation.
- dataValue - The value of the A/D sample.