Chapter 6: AD12-8 Windows Driver Reference
Manual Number: 00650-014-4
Page 6-3
Task Summary
AD128_Init:
Initializes the driver.
AD128_Shutdown:
Terminates the driver and frees all Windows resources.
AD128_SetPointConfig:
Configures a range of points.
AD128_FetchPointConfig: Fetches the configuration for a given point.
AD128_AddPoints:
Adds a range of points to the point list.
AD128_ResetListIndex:
Sets the point list index to the top of the list.
AD128_ClearPointList:
Clears all points from the point list.
AD128_DelPtListIndexes: Deletes range of point list indexes from the point list.
AD128_SetSettleTime:
Set the sample-and-hold settle time.
AD128_GetNextPoint:
Converts the next point in the list as indicated by the list index.
AD128_GetIndexPoint:
Converts a point in the list based on a provided list index.
AD128_GetDirectPoint:
Converts a point directly using the supplied point address.
AD128_IRQStatus:
Checks the status of an active interrupt process.
AD128_IRQTerminate:
Terminates an active interrupt process.
AD128_IRQScan:
Performs buffered data acquisition using interrupts.
AD128_PollScan:
Performs buffered data acquisition using polling.
AD128_PostProcess:
Processes and returns data from a batch process.
AD128_FetchLastGain:
Fetches the last gain used for conversion of a given point.
AD128_DigitalOut:
Writes to the digital output bits.
AD128_DigitalIn:
Read from the digital input bits.
AD128_SetCounter:
Sets up a given counter.
AD128_ReadCounter:
Reads back a given counter.
AD128_RateGenerator:
Generates a given frequency from the counter 1/2 pair.
AD128_DisableCounter:
Disables a given counter.
AD128_MeasureFreq:
Measures frequency.
AD128_MeasurePeriod:
Measures period.
Task Reference
AD128_Init
Function:
Initializes the driver, and sets up the data structures.
Syntax:
Visual BASIC:
AD128_Init(Byval config as Integer, Byval addr as Integer, Byval range as
Integer,) as Integer
C:
int PASCAL AD128_Init(int config,int addr,int range);
config:
If
config = 0
, the calling program will configure channel information for the
card by making calls to the driver functions to set up the point list, gains,
functions etc. If
config = 1
, the configuration information is fetched from
the file called
setup.cfg
.
addr:
The base address for this card. The base address should be between 200 and
3F8 hex.