- From: george gomes <georgegdc4_at_gmail.com>
- Date: Mon, 20 Aug 2007 16:46:53 -0700
Hi all Thank you again for previous help. I am getting a runtime error message: "/dev/comedi0: Bad address" on exection of the line: ret = comedi_data_read(device, subdevice, channel, range, analogref, data); subdevice, channel, range and analogref are all set to 0. the lines: lsampl_t *data; device = comedi_open(filename); successfully executed. "comedi_config /dev/comedi0 ni_picmio" has been run and the module has been loaded through modprobe and shows up when I do an lsmod. I had this line working before however it failed me after I was moving around code to "clean" it up. Any clue on how to get this runtime message to go away will be appriciated. Im using: comedi 0.7.73 kernel 2.6.15 with a NI 6221 card BTW if anyone can recommend a good IDE for c(and maybe c++) I would be much obliged. The inability to retrace my steps is what got me in this jam in the first place. George
Received on 2007-08-20Z22:46:53