This is a test code, written to observe properly
functioning A/D input and simultaneous, point-by-
point, D/A output control under real time linux
using the driver package Comedi.

daq_test.c should compile under most rtlinux kernels,
but was originally used with linux-2.2.18-rtl-3.0.
This also requires you have a functioning DAQ board
and Comedi running on your RTLinux system. It utilizes
the newer Comedi API, and was originally used on
comedi-0.7.59 and comedilib-0.7.15. Depending on what
board you are using and where you have Comedi
installed, you will probably need to edit the Makefile
to identify your board. The 3 lines in which 'pcimio'
appear will need modification to your board name.

In this directory, as root, type:
	make

This should create daq_test.o
When it compiles without errors, type:
	make test

This ensures all needed rtl and comedi modules are
loaded, and starts the real time test running. To
observe that the DAQ board is functioning correctly,
supply a signal to AI0. Using an oscilloscope,
compare that signal to the signal coming out of AO0.
They should match, give or take 12 bit digitization
and 20kHz sampling.

At some point, you will be instructed to hit <return>
to end test. Do so at your own leisure.

Good luck, and email me with questions.
- Chuck Dorval, bionic@bu.edu, July 15, 2001






