A826_ads_float, 4 a826_ads_float – Omega Engineering OME-A826PG User Manual

Page 42

Advertising
background image

OME-A-826PG Software Manual [Win 95/98/NT]

3.3.4

A826_ADs_Float

Description :

This subroutine will perform a number of A/D conversions by polling. This

subroutine is very similar to A826_AD except that this subroutine will perform
wCount of conversions instead of just one conversion. The A/D conversing at the
ISA bus’s max. speed. The sampling rate is about 90K samples/second which
testing under Pentium-133 CPU. Then the A/D data are stored in a data buffer in
Float format. The fBuf is the starting address of this data buffer.

Syntax :

WORD A826_ADs_Float(WORD wBase, WORD wChannel, WORD wConfig,

float fBuf[], WORD wCount);

Parameter :

wBase

: [

Input

] I/O port base address, for example, 0x220

wChannel :

[

Input

] A/D channel number

wConfig

: [

Input

] Configuration code, refer to 1.2 for detail information

fBuf :

[

Output

] Starting address of the data buffer

(in float format)

wCount

: [

Input

] Number of A/D conversions will be performed

Return Value :

AdError1

: A/D converter error

NoError

: Operation is OK

Date: Aug-15-2000 Ver: 2.2 Page 40

Advertising