dscADScan()

byte dscADScan(short board, ref DSCADSCAN dscadscan, IntPtr sample_values);

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.

Last updated