Re: Problem with M.C./C.B. PCI-DAS1200 commands in realtime

On Fri, 2002-06-21 at 07:04, Ivan Martinez wrote:
> 	Hello all,
> 	Is anybody using commands in realtime with cb_pcidas driver?. It doesn't 
> work in my computer. 
I'm using it very successfully in kernel mode.  I'm using RTAI 2.4.19,
and use it for analog data acquisition on a PCI-DAS4020/12 card,
sampling at around a 10 Mhz rate.  I am, however, using the callback
feature and providing my own data buffer for the return results.  How
are you running it in "real time"?  I wrote a kernel module that is
loaded via insmod, and send it commands via the real time FIFOs built in
to RTAI.

John

When I issue a certain comand with cmd.c it works fine. 
> Then I do the same comand in realtime (RTAI on kernel 2.4.17) with a modified 
> version of the example it.c, and dmesg reports the following:
> 
> Comedi real-time example #1
> comedi_open: 0
> comedi_lock: 0
> command test returned 0
> command returned 0
> [0]:0 [1]:0 [2]:0 [3]:0 [4]:0 [5]:0 [6]:0 [7]:0
> who's yer daddy? 0
> comedi_cancel: 0
> comedi_unlock: 0
> comedi_close:
> 
> 	The [x]:0 are the readings obtained in the channels. Notice that 
> comedi_close is not reporting any result. The module "it" (from it.c) remains 
> installed.
> 	I run the user-space command again and I get:
> 
> ...
> comedi_command: Permission denied
> 
> 	Then I remove the module "it" and try again with the user-space command, and 
> what I get is:
> 
> ...
> second test returned 0 (success)
> start time: 1024662154.233026
> 
> 	At this point the program seems to freeze. However, I can stop it with 
> CTRL+C. I have to reboot the computer to make things work again.
> 	I guess there's some bug in the cb_pcidas driver, but since I didn't 
> implement the commands support, I don't know where to start looking. Frank?. 
> Anybody?.
> 	Regards,
> 	Ivan Martinez
> 
> 
> _______________________________________________
> comedi mailing list
> comedi_at_stm.lbl.gov
> http://stm.lbl.gov/cgi-bin/mailman/listinfo/comedi

Received on 2002-06-21Z12:56:45