VIn()

Reads an A/D input channel, and returns a single precision voltage value. If the specified A/D board has programmable gain, then this function sets the gain to the specified range. The voltage value is returned to dataValue.

Member of the MccBoard class.

Function Prototype

VB .NET

Public Function VIn(ByVal channel As Integer, ByVal range As MccDaq.Range, ByRef dataValue As Single, ByVal options as MccDaq.VInOptions) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo VIn(System.Int32 channel, MccDaq.Range range, System.Single dataValue, MccDaq.VInOptions 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.

range

A/D range code. If the board has a programmable gain, it will be set according to this parameter value.

Keep in mind that some A/D boards have a programmable gain feature, and others set the gain via switches on the board. In either case, the range that the board is configured for must be passed to this method. Refer to board-specific information in the Universal Library User's Guide for a list of the supported A/D ranges of each board.

dataValue

A reference to the data value.

options

Reserved for future use.

Returns

options parameter values

DefaultReserved for future use.