using subdevice 0 of comedi_parport

Hi,

I'm trying to use the subdevice 0 of comedi_parport but I can't...
I load the modules as the followings:

 insmod /usr/realtime/modules/rtai_hal.ko
 insmod /usr/realtime/modules/rtai_up.ko
 insmod /usr/realtime/modules/rtai_fifos.ko
 insmod /usr/realtime/modules/rtai_sem.ko
 insmod /usr/realtime/modules/rtai_mbx.ko
 insmod /usr/realtime/modules/rtai_msg.ko
 insmod /usr/realtime/modules/rtai_netrpc.ko ThisNode="127.0.0.1"
 insmod /usr/realtime/modules/rtai_shm.ko
 insmod /usr/realtime/modules/rtai_leds.ko
 insmod /usr/realtime/modules/rtai_signal.ko
 insmod /usr/realtime/modules/rtai_tasklets.ko
 modprobe comedi
 modprobe kcomedilib
 modprobe comedi_fc
 modprobe comedi_parport
 modprobe comedi_rt_timer
 insmod /usr/realtime/modules/rtai_comedi.ko
 comedi_config /dev/comedi0 comedi_parport 0x378,7
 comedi_config /dev/comedi1 comedi_rt_timer 0,0



Then, I prepare a simple block diagram using Scilab/Scicos. A signal
generetor sends square waves to the channel 1 of the Comedi1. When I run
the program, I get the following output:

 ./Untitled -v

 Target settings
 ===============
   Real-time : HARD
   Timing    : internal / periodic
   Priority : 0
   Finaltime : RUN FOREVER 
   CPU map : f

 TARGET STARTS.
 COMEDI /dev/comedi1 (timer) opened.

 Comedi DIO config failed for subdevice 0
 Model : Untitled .
 Executes on CPU map : f.
 Sampling time : 1.000000e-01 (s).
 Target is running.
 Scope SCOPE closed

 COMEDI DO /dev/comedi1 closed.

 Target has been stopped.
 TARGET ENDS.



* I can use Comedi0 (the subdevice 2 of comedi_parport) without problem.
* The RTAI latency test runs without any problem.
* I installed RTAI-Lab, Comedi, Scilab etc. as describing in 
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Debian_Etch_Compile_RTAI

But I can't use subdevice 0 of comedi_parport. Any suggestion?

Thanks
acemi

Received on 2007-07-14Z20:35:25