Analog input vis, Ain.vi, Universal library virtual instruments (vis) – Measurement Computing UL for NI LabVIEW User Manual
Page 17

5
Universal Library Virtual Instruments (VIs)
Analog Input VIs
AIn.VI
Reads an A/D input channel. This VI reads the specified A/D channel from the specified board. If the A/D
board has programmable gain, it sets the gain to the specified range. The raw A/D value is converted to an
A/D value and returned to
DataValue
.
Summary:
Inputs:
BoardNum
[U32] - The board number when installed with InstaCal; can be 0 to
100.
Channel
[I32] - A/D channel number
Range
[I32] - A/D Range
Outputs:
DataValue
[U16] - Value of A/D sample
ErrCode
[I32] - Error code. See ErrMsg.VI on page 97.
Arguments:
BoardNum
The board number associated with a board when it was installed with InstaCal. The
specified board must have an A/D. BoardNum can be from 0 to 100.
Channel
The maximum allowable channel depends on which type of A/D board is being
used. For boards that have both single ended and differential inputs, the maximum
allowable channel number also depends on how the board is configured. For
example, a PCI-DAS6025 has eight channels for differential, 16 for single-ended
input mode.
Range
If the selected A/D board does not have a programmable gain feature, this
argument is ignored. If the A/D board does have programmable gain, set the
Range
argument to the desired A/D range.
table on page 19 lists the constants you can use in the
Range
argument for most functions. Not all A/D boards support the same A/D
ranges. Refer to the board’s hardware manual for a list of supported A/D ranges.
17