Re: Calling Comedi functions in RTLinux

On Tue, 24 Jun 2003 HanMic_at_aol.com wrote:

> Hello!
>
> I am using Comedi-0.7.66 and comedilib-0.7.19.
>
> I would very much like to call COMEDI functions in RTLinux. While reading the mailing list, I found out, that there should be real-time examples in comedilib/demo. But there are none :(
>
> So I tried to figure out the usage of comedi functions amoung rtlinux by "trial and error". I know, that one cannot use comedi.h and comedilib.h in realtime code, as they are userspace files. Instead one mus call kcomedilib. I searched and found a file /comedi/include/linux/comedilib.h which seems to be the real-time library. Is that correct?
>
> What I did was to include this file in my realtime code and got an error message, that <linux/comedi.h> did not exist. Changing paths to an existing comedi.h worked for compilation but when I tried to insert my realtime/comedi module I got unresolved symbols comedi_open and comedi_writedata.
>
> I would be very thankful, if one of you would be so kind to tell me, how I can actually use comedi fuctions in rtlinux. I would very muchg appreciate your help! Maybe you could tell me what I have to change in my rtlinux code and my makefile (attached to this mail).

You need to insmod kcomedilib.o.  If this module doesn't exist, you need
to enable it when building comedi against your RTLinux kernel.

-Calin

Received on 2003-06-30Z16:15:27