NI PCI6010

52 views
Skip to first unread message

Alessandro Marzocchi

unread,
Dec 6, 2011, 8:02:59 AM12/6/11
to Comedi: Linux Control and Measurement Device Interface
Hello everybody,
I'm looking for a cheap PCI DAQ board to do some tests with Comedi.
I found that National Instruments PCI-6010 is within my budget
(383euros). Anybody knows if there'll be any chance of making it work
with Comedi. Otherwise do you know any multifunction board (analog and
digital inputs and outputs) that could be working? Thank you in
advance
Alessandro Marzocchi

Dieter Wirz

unread,
Dec 6, 2011, 10:29:13 AM12/6/11
to comed...@googlegroups.com
Allessandro
Supported hardware you find at http://comedi.org/hardware.html .
Because PCI-6010 is not on the list I don's think it's a good idea buy
this card to test comedi.

But have a look at ADlink or usbdux (http://www.linux-usb-daq.co.uk/)

Regards
-didi

Antonio López

unread,
Dec 26, 2011, 10:59:21 AM12/26/11
to comed...@googlegroups.com
Hello,

I use NI PCI 6220 and 6221. Most of the functionality works OK

Regards
Alo

--
You received this message because you are subscribed to the Google Groups "Comedi: Linux Control and Measurement Device Interface" group.
To post to this group, send email to comed...@googlegroups.com.
To unsubscribe from this group, send email to comedi_list...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/comedi_list?hl=en.


Vadim Alexeenko

unread,
Dec 27, 2011, 10:34:54 AM12/27/11
to Comedi: Linux Control and Measurement Device Interface
Hi, Antonio,
maybe you are doing the simultaneous analog output and and input
with 6221?
If yes, maybe you could help me how to do it?

Best regards,
Vadim

On 26 дек, 19:59, Antonio López <alo...@fotonicalaser.com> wrote:
> Hello,
>
> I use NI PCI 6220 and 6221. Most of the functionality works OK
>
> Regards
> Alo
>

don taber

unread,
Dec 27, 2011, 11:27:02 AM12/27/11
to comed...@googlegroups.com
> maybe you are doing the simultaneous analog output and and input
> with 6221?
> If yes, maybe you could help me how to do it?

I could not figure out how to do this. My solution was to have
two DAC cards and run the analog output and input on simultaneously
executing threads. NI cards do have the capability of outputting
a continuous AO waveform from and on board buffer. Unfortunately
the comedi interface is not done. This would be a *good thing* to
implement if someone cared enough and knew how. That person is not
me however :-(

Don Taber

Antonio López

unread,
Feb 6, 2012, 8:00:33 AM2/6/12
to comed...@googlegroups.com
I do succesive AO and AI, I don't understand what do you mean by simultaneous. I read AI and DI and then write AO and DO after some calculations on the same RT period (25 usec)

Vadim Alexeenko

unread,
Feb 12, 2012, 3:06:30 AM2/12/12
to Comedi: Linux Control and Measurement Device Interface
On 6 фев, 17:00, Antonio López <alo...@fotonicalaser.com> wrote:
> I do succesive AO and AI, I don't understand what do you mean by
> simultaneous. I read AI and DI and then write AO and DO after some
> calculations on the same RT period (25 usec)
>

Well...
What I need is to do some experiment control in realtime, that is


1. to input data on 4-5 channels
2. to output data on one channel

Both conversions should occur "in pseudo-sync".
(Analog output_Analog input on channels1_2_3_4_5) ...(Analog
output_Analog intput on channels1_2_3_4_5)...

This should be a very common task to do, but at the moment I could not
find any corresponding C/C++ sample code.
I am only an electrophysiologist and not an IT guy :)

WBR,
Vadim

W. Trevor King

unread,
Feb 12, 2012, 7:08:57 AM2/12/12
to comed...@googlegroups.com
On Sun, Feb 12, 2012 at 12:06:30AM -0800, Vadim Alexeenko wrote:
> What I need is to do some experiment control in realtime, that is
>
> 1. to input data on 4-5 channels
> 2. to output data on one channel
>
> Both conversions should occur "in pseudo-sync".
> (Analog output_Analog input on channels1_2_3_4_5) ...(Analog
> output_Analog intput on channels1_2_3_4_5)...
>
> This should be a very common task to do, but at the moment I could not
> find any corresponding C/C++ sample code.
> I am only an electrophysiologist and not an IT guy :)

That's close to what I do on our NI PCI 6052E. For any NI-STC-based
card, you can set up the AO timing so it triggers off of the AI start
signal. With the same clock frequency, the two should be fairly well
synchronized. I wrote up a blog post summarizing the change that
introduced this capability to Comedi, which you might find informative
[1]. I don't have any examples for you in C/C++, but I have examples
[2] in my pycomedi [3] Python wrapper, which should run pretty close
to the C equivalent. If you need help translating the example to C,
let me know.

All of the above is about synchronized I/O. If you want real time
control (i.e. you're changing your output signal based on the inputs),
that's a whole other can of worms, of which I know very little. The
basic approach will be the same, but you'll need to ensure that the
output channel(s) don't run out of data in their output buffer.

Cheers,
Trevor

[1]: http://blog.tremily.us/posts/Comedi_and_NI_triggering/
[2]: http://git.tremily.us/?p=pycomedi.git;a=blob;f=doc/synchronized_analog_IO.txt;hb=HEAD
[3]: http://blog.tremily.us/posts/pycomedi/

--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

signature.asc
Reply all
Reply to author
Forward
0 new messages