M Series NI PCI-6221

Hi everyone,

First of all, thanks to everyone that contributed to getting the NI M
series drivers working!

I successfully compiled Comedi for a RTAI patched 2.6.11.4 kernel.
Since I didn't need Addi-data support, and couldn't get it to compile
even after making the changes I saw on this list, I commented out
SUBDIRS = addi-data in comedi/drivers/Makefile.am, before running
autogen.sh

Even though I am planning to use kcomedilib from kernel space and a
realtime thread, I tried to test Comedi using the demo programs from
Comedilib.  outp worked immediately.  inp and inpn revealed that the
analog input was saturated.  I ran LabVIEW 8 using NIDAQmx drivers and
found that the AI was still saturated until I used the reset device vi.
I unloaded LabVIEW, and then ran the demo program inp and inpn.  The
output no longer appeared saturated but the data never changed
regardless of the input.  Then I ran poll.  At the end of the poll
output I saw some data that looked correct.  After running poll, inp and
inpn now work as well.

I am diving into the source code to try and figure out what is going on,
but maybe someone can point me in the correct direction.  I have been
looking carefully at how the M series register level programming
examples resets the device (subdevice) and I am trying to figure out how
this is done in Comedi.

Thank you

Douglas Kieweg

Received on 2006-02-08Z00:36:29