DscADScan

Universal Driver Documentation
Performs a single A/D conversion on each channel in the selected channel range. The channels are sampled individually in rapid sequence. The channels are not sampled simultaneously. The high channel number must be greater than or equal to the low channel number, and both values must be less than the total number of channels on the board. Setting high = low is the same as using dscADSample(). The function returns DE_OPERATION_TIMED_OUT if a timeout occurs because the A/D circuit is not ready (A/D Busy signal stays true). This usually indicates a hardware error.

Function Definition

BYTE dscADScan(DSCB board, DSCADSCAN* dscadscan, DSCSAMPLE* sample_values);

Function Parameters

NameDescription
boardThe handle of the board to operate on
dscadscanThe A/D scan settings to be used
sample_valuesPointer to an array or allocate memory for holding the scan values.

Return Value

Error code or 0.


This page was last modified 15:49, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.