- From: John Darrington <jdarrington_at_customvis.com>
- Date: Thu, 13 May 2004 08:03:34 +0800
Hi, I'm a newbie at comedi and still learning my way around it. I'm trying to use kcomedilib from comedi-0.7.68 with RTLinux 3.1 to get real time data acquisition and control . My first problem is that I'm not sure if I'm supposed to compile with or without -D KCOMEDILIB_DEPRECATED If I compile with this preprocessor symbol, then the signature of comedi_open is: int comedi_open(unsigned int minor); which seems reasonable. However, it simply doesn't agree with the definition , which in the kcomedilib_main.c is defined as comedi_t *comedi_open(const char *path); which is also how the header file declares it, if KCOMEDILIB_DEPRECATED is not defined. Looking through the source of kcomedilib, it seems that I'm supposed to pass it "/dev/comedi[0-9]" and all but the last digit is ignored. Wierd! Anyway I tried that and although nothing disastrous happens, it always returns NULL. Am I using it right? Why would it return NULL ? Thanks, John
Received on 2004-05-12Z23:03:34