Matthew
unread,Jul 18, 2011, 12:31:59 PM7/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Comedi: Linux Control and Measurement Device Interface
Hello Everyone,
I am currently working with a Ni PCI 6229 daq card and a BNC-2110
input/output device. I have comedi version 7.76 compiled in Ubuntu
10.10. I have the ni_pcimio driver configured for this daq card.
I am able to compile the Demo program "inp.c" - a little input demo.
This works well as I am able to successfully read input voltages
(range 0: -10 to 10v and 10v giving input value 65535).
However, I am simply unable to get any sort of output to work. I have
compiled and ran "outp.c" - a little output demo, and I get the
following:
/dev/comedi1: Invalid argument
I have also simply tried something such as:
lsampl_t outputdata = 50000; //(~9 v)
sendval = comedi_data_write(device, subdevice, channel,r ange,
analogref, outputdata);
But comedi_data_write (ret) returns -1, associated with an error.
Can anyone please give me some troubleshooting ideas or perhaps
someone has had similar troubles using comedi to output data?
Furthermore, I'm sure that there are some things I should have
included in this post, so feel free to ask me to include those things
as well.
Any help is greatly appreciated.
Matt M