- From: Chuck Haines <chaines_at_ece.wpi.edu>
- Date: Wed, 4 Jun 2003 09:59:55 -0400 (EDT)
I'm trying to write some software to read from the digital I/O on the NI 6024E. I'm running Slackware 9 on kernel 2.4.19 custom compiled from kernel.org. The comedi and comedilib files are installed and working since the demo progarms work. When I run my program i get an invalid arguement error when running the following line of code: nError = comedi_dio_config(card, subdev, chanStart, COMEDI_INPUT); card is the opened comedi card, subdev is a unsigned int as well as chanStart. subdev is set to 5, the digital subdevice and the chanStart is set to 0. Any help in this matter would be much appreciated. I can send my source code upon request. also, the return values for the funtions seem to be returning as 1 rather than -1 for errors. I'm using an int to get the return value. thanks, Chuck
Received on 2003-06-04Z12:59:55