BUG: comedi_switch_to_rt() called with bogus interrupt 0 <-- Real time streaming with ni_labpc

I suppouse (the documentation is relly short about it)
that to use real time i have to enable a device that
uses the comedi_rt_timer module so at start up i run:

#/bin/bash
echo "Configurando comedi..."
/etc/comedi/pnpconfig.sh
/sbin/modprobe comedi
/sbin/modprobe ni_labpc
/usr/sbin/comedi_config /dev/comedi0 lab-pc-1200
0x120,9,1
/sbin/modprobe comedi_rt_timer
/usr/sbin/comedi_config /dev/comedi1 comedi_rt_timer
0,0

and then in the /etc/modules.conf file i add:

alias char-major-98 comedi
alias char-major-98-0 ni_labpc
alias char-major-98-1 comedi_rt_timer

NOTE: I had to do it this way because when i put the
configuration commands in modules.conf then only when
root tried to access /dev/comedi1 the comedi_rt_timer
module was loaded otherwise not (it didn't work for
other users).

Then whenever I try a streaming command for reading in
/dev/comedi1 that has the TRIG_RT flag set it fails
and blocks the device. The kernel error message is:

kernel: BUG: comedi_switch_to_rt() called with bogus
interrupt 0

Then I have to reboot the system because is not
possible to rmmod the ni_labpc module.

How can i achieve Real Time sampling with comedi???

I'm using a RTAI kernel:

control:/# uname -a
Linux control 2.4.18-rthal5 #2 Wed May 22 16:54:11 COT
2002 i686 unknown

Thx in advance 4 any help u can give me.



Cobertura especial de la Copa Mundial de la FIFA Corea-Japón 2002, sólo en Yahoo! Deportes:
http://ar.sports.yahoo.com/fifaworldcup/

Received on 2002-07-08Z20:24:50