Aloadque.vi – Measurement Computing UL for NI LabVIEW User Manual
Page 28

Universal Library Virtual Instruments (VIs)
Analog Input VIs
ALoadQue.VI
Loads the A/D board's channel/gain queue. This VI only works with A/D boards that have channel/gain queue
hardware.
Summary:
Inputs:
BoardNum
[U32] - The board number assigned when installed with InstaCal. Can
be 0 to 100.
ChanArray
[I16] - Array containing channel values
GainArray
[I16] - Array containing A/D range values
Count
[I32] - Number of elements in
ChanArray
and
GainArray
, or (0) to disable
the board's channel/gain queue.
Outputs:
ErrCode
[I32] - Error code. See ErrMsg.VI
Arguments:
BoardNum
The board number associated with a board when it was installed. The specified
board must have an A/D and a channel/gain queue.
ChanArray
This array should contain all of the channels that will be loaded into the channel
gain queue.
GainArray
This array should contain each of the A/D ranges that will be loaded into the
channel gain queue.
Count
Specifies the total number of channel/gain pairs that will be loaded into the queue.
ChanArray
and
GainArray
should contain at least
Count
elements. Set
Count
=0 to
disable the board's channel/gain queue. The maximum value is specific to the
queue size of the A/D boards channel gain queue.
Normally the AInScBg.VI or AInScFg.VI scans a fixed range of channels (from
LowChan
to
HighChan
) at a fixed A/D range. If you load the channel gain queue
with this VI, all subsequent calls to AInScFg.VI or AInScBg.VI cycle through the
channel/gain pairs that you have loaded into the queue.
ErrCode
Error code returned from the Universal Library. Zero if no error occurred. Use the
ErrMsg VI to convert
ErrCode
into a readable string.
28