- From: Carl Ljungmark <cljun001_at_stud.informatik.fh-wiesbaden.de>
- Date: Fri, 18 Feb 2005 13:55:40 +0100
Hello!
I'm writing a program to control a few digital pins on a IO-card using
comedi.
To configure the pins (set them to output, and put them low), I do this:
for (ch=0; ch<24; ch++){
printf("ch%d: (%s, %s).\t", ch+1, comedi_dio_config(device, 0, ch,
COMEDI_OUTPUT)==1? "output": "error", comedi_dio_write(device, 0, ch,
0)==1? "low" : "error");
To check if this works, I put them high instead - but nothing happened on
the pins. Is this an invalid use of the comedi functions?
thanks,
carl
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Received on 2005-02-18Z12:55:40