rtai3.1-> lxrt and comedi

Roberto Bucher roberto.bucher at supsi.ch
Tue Oct 26 11:03:23 CEST 2004


I think you need the cvs version of comedi which support adeos.

What happens by "configure" of comedi and comedilib?

Roberto

On Friday 22 October 2004 17:23, martin.my at gmx.de wrote:
> Hi all,
>
> i have maked my first stepp's on LXRT, thanks to Gilles and Poalo for the
> link's for "lxrt compiling-problem"
>
> I have install the comedi driver on my system.
> comedi-0.7.68
> comedilib-0.7.21
>
> kompiling was ok (rtai3.1 and comedi)
> With a small Linuxprogramm i have test the funktion of mein NI-Card. Thats
> all ok, in the kernel mode is it possible too.
>
> But now i would like test the card in lxrt.
> The programm start and execute the while command, but nothing doing on the
> port. When the while command is finish, jump the port on 5V.
>
> ....
> ....
> rt_set_periodic_mode();
> tick_period = start_rt_timer(nano2count(4000000) );
>
> rt_task_make_periodic(hrttsk, rt_get_time() + tick_period,tick_period);
>  {
>  while(j<20)
>  {
>  ret=comedi_dio_write(device,subdevice,chanel,0);
>  if(ret != 1)printf("Fail von chanel %d by output 0\n",chanel);
>  if(i==0)
>  {
>  printf("Output on Chanel %d with LOW Bit\n",chanel);
>  i=1;
>  }
>  rt_task_wait_period();
>  ret=comedi_dio_write(device,subdevice,chanel,1);
>  if(ret!=1)printf("Fail von chanel %d by output 1\n",chanel);
>  if(i==1)
>  {
> 	printf("Output on Chanel %d with HIGH Bit\n",chanel);
> 	i=2;
> 	}
> 	printf("%d\n",j);
> 	j++;
> 	}//end while
>
> 	}
>
> 	//rt_make_hard_real_time();
>
>
> 	printf("Stopping of Timer and delete RT_Task\n");
> 	stop_rt_timer();
> 	rt_task_delete(hrttsk);
> 	while(1) { sleep(3); printf("BACKGROUND PROCESS STILL RUNNING\n"); }
> 	return 0;
> }//end main
>
> The insmod of the modules was i think so ok.
>
> fwstimulator:~ # lsmod
> Module                  Size  Used by    Not tainted
> rtai_comedi             2092   0  (unused)
> kcomedilib              5808   0  [rtai_comedi]
> ni_pcidio               4800   0
> mite                    2804   0  [ni_pcidio]
> 8255                    2464   0  [ni_pcidio]
> comedi                 20820   0  [kcomedilib ni_pcidio 8255]
> rtai_shm               10128   0  [rtai_comedi]
> rtai_sem               25024   0  [rtai_comedi]
> rtai_lxrt              79004   0  [rtai_comedi rtai_shm rtai_sem]
> rtai_hal               54964   0  [rtai_shm rtai_sem rtai_lxrt]
> fwstimulator:~ #
>
> Thanks for bugfix, and Greetings
> Martin

-- 
University of Applied Sciences
of Southern Switzerland
Dept CS & EE
http://www.dti.supsi.ch/~bucher





More information about the Rtai mailing list