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

But you don't use the cb_pcidas driver for that card, do you?.
Here is my code attached. I noticed the command is not issued in realtime, 
just called in kernel space from init_module. Also, there's something 
unaccurate in what I said. The following...

comedi_cancel: 0
comedi_unlock: 0
comedi_close:

...is obtained from dmesg after removing the module, not before. And I guess 
obtaining "comedi_command: Permission denied" from user-space when the module 
is still installed, is normal. But, anyway, I can't read the inputs and 
runing the kernel-space command prevents any other command from working 
again, until the computer is rebooted.
Thank you,
Ivan

On Friday 21 June 2002 03:56 pm, John Sims wrote:
> 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
>
> _______________________________________________
> comedi mailing list
> comedi_at_stm.lbl.gov
> http://stm.lbl.gov/cgi-bin/mailman/listinfo/comedi

Received on 2002-06-21Z13:36:11