- From: Calin A. Culianu <calin_at_ajvar.org>
- Date: Thu, 13 Feb 2003 18:19:08 -0500 (EST)
Hi, This might be an old problem that you have fixed but reading your code sample I noticed some logical errors in the C code. It is possible that these account for your problems with comedi commands in kernel mode. Let me know if you still need help with this and I can more clearly illustrate to you the suspect bits of your code that I found. On Wed, 5 Feb 2003, Wim Meeussen wrote: > Hallo, > > I am trying to read 6 channels in continuous scan mode, with the > ni_mio_common dirver. I'm using the CVS version of comedi form one week > ago. My test program runs in kernel space on a x86 machine, 2.4.18 kernel. > > First I initialise a continuous scan (0.5 Hz). I registered a callback > function (CB_EOF) so an interrupt occures after each scan. In the > callback function I read the comedi buffer using the > cfc_read_array_from_buffer(..) function. > > I am having the following problems: > 1) The first scan only contains 5 samples instead of 6. All the next > scans contain 6 samples > 2) All the 6 samples I get are samples from channel 0, and none from the > 5 other channels. > > See also the test.c file in attachment. > > Thanks, > > Wim >
Received on 2003-02-13Z23:19:08