Manual Number: 00650-014-4
Page 5-2
AD12-8 Manual
The AD12-8 combined with the AT16-P and this driver provide an excellent tool to handle most
kinds of data acquisition signals.
Task Summary
TASK 0:
Driver initialization.
TASK 1:
Check A/D operations.
TASK 2:
Fetch gain code for a given point address.
TASK 3:
Fetch point address from the point list.
TASK 4:
Assign gain code to a range of point addresses.
TASK 5:
Assign range of point addresses to the point list.
TASK 6:
Perform conversion of the given point address.
TASK 7:
Perform conversion on next point address in the point list.
TASK 8:
Perform multiple conversions from the point list using polling.
TASK 9:
Perform multiple conversions from the point list using interrupts.
TASK 10:
Function assignments.
TASK 11:
Reset operations.
TASK 12:
Write digital output.
TASK 13:
Read digital input.
TASK 14:
Load counter/timers.
TASK 15:
Read counter/timers.
TASK 16:
Fetch single, designated point address, high performance buffered.
TASK 17:
Fetch Multiple Points (High Performance), point list and gains are used, but
function assignments are not.
Task Reference
Task 0: Initialize
This task provides the driver with information on the card setup. This task should be called once at
the beginning of the program, before any other tasks are called. If other tasks are called first, they
will return error code 1.
Notes:
1. This task also calls TASK 1 to test if the card is functioning.
2. Disables all interrupt and counter activity.
3. Initializes the point list to have point addresses for each channel of the AD12-8, with none for
the AT16-P or LVDT8-P (i.e. point addresses 0, 16, 32, 48 .... 112).
4. Initializes the function list for each point address to a gain code of 0 and no functions performed
on conversion counts.
5. Information for the setup of the driver may be obtained either from the configuration file or
from the parameters passed to the driver. The configuration file is created by using the SETA12
and SETMUX setup programs, or by a word processor/text editor in the non-document mode.
The driver will read the configuration file and set up the driver accordingly if params[0] = 0.