DscADSampleInt

Universal Driver Documentation
Performs A/D conversions using interrupt-based I/O with one A/D conversion per A/D clock tick. Note that calling this function only starts the interrupt operations in a separate system thread. The function call does not result in an atomic transaction with immediate results. Rather, it starts a real-time process that terminates only when the number of conversions reaches the maximum specified (one-shot mode) or if a call to dscCancelOp() made.

Function Definition

BYTE dscADSampleInt(DSCB board, DSCAIOINT *dscaioint);

Function Parameters

NameDescription
boardThe handle of the board to operate on
dscaiointThe interrupt-based analog I/O settings to be used

Return Value

Error code or 0.

A/D samples resulting from the interrupt operation are stored in the buffer whose pointer is passed to the function in the DSCAIOINT structure.


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