DscADSample

Universal Driver Documentation
Performs a single A/D conversion on the currently selected channel. The function first waits for the board to be ready for a conversion. It then starts the conversion and waits for it to finish before reading data from the board. A built-in timer is used to check for board failure. If the timer times out before the conversion completes, the board returns the error code

Function Definition

BYTE dscADSample(DSCB board, DSCSAMPLE* sample);

Function Parameters

NameDescription
boardThe handle of the board to operate on
samplethe sample resulting from the A/D conversion; the range of return values depends on the type of A/D board.

Return Value

Error code or 0.


This page was last modified 19:33, 30 Jan 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.