# ALoadQueue()

Loads the A/D board's channel/gain queue. This method only works with A/D boards that have channel/gain queue hardware.

Some products do not support channel/gain queue, and some that do support it are limited on the order of elements, number of elements, and gain values that can be included, etc. Please refer to the device-specific information in the Universal Library User's Guide for details of your particular product.

Member of the MccBoard class.

## Function Prototype

VB .NET

Public Function ALoadQueue(ByVal chanArray As Short(), ByVal gainArray As MccDaq.Range(), ByVal count As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo ALoadQueue(short[] chanArray, MccDaq.Range[] gainArray, int count)

## Parameters

chanArray

Array containing channel values. This array should contain all of the channels that will be loaded into the channel gain queue.

gainArray

Array containing A/D range values. This array should contain each of the A/D ranges that are loaded into the channel gain queue.

count

Number of elements in chanArray and gainArray or 0 to disable channel/gain queue. 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.

## Returns

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

## Notes

- Normally the AInScan() method 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 method then all subsequent calls to AInScan() will cycle through the channel/gain pairs that you have loaded into the queue.