- From: <fmhess_at_speakeasy.net>
- Date: Thu, 09 Feb 2006 22:24:49 +0000
> 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. The relevant code for the inp demo is ni_ai_insn_read() in ni_mio_common.c. You can ignore the code for 611x boards in that function. ni_ai_reset() is probably also of interest to you. Some possibilities you might want to check out are: 1) ni_load_channelgain_list() is failing. ni_m_series_load_channelgain_list() does not follow the m series documentation. Rather, it programs them like they are e-series boards because my board seemed to work fine that way so I didn't bother to change it. 2) The ai fifo isn't clearing properly. I haven't seen any of the problems you describe, but I have a 6289 which has an 18 bit analog input.
Received on 2006-02-09Z22:24:49