Comedi, USB and NI

110 views
Skip to first unread message

mathm...@googlemail.com

unread,
May 1, 2009, 4:06:38 PM5/1/09
to Comedi: Linux Control and Measurement Device Interface
hello, is there any way comedi can support USB national instrument
devices, I have something that is the same model as one of the
supported PCI devices USB-6259 (which maches PCI 6259), is it simply a
matter of extending the drivers to talk through USB? or is it more
complicated than that?

thank you for your help

Richard

Ian Abbott

unread,
May 5, 2009, 7:41:26 AM5/5/09
to comed...@googlegroups.com

I suspect it would be easier to write one or more drivers for the NI USB
devices from scratch rather than try and add USB support to the existing
NI drivers.

--
-=( Ian Abbott @ MEV Ltd. E-mail: <abb...@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-

Greg

unread,
Jul 3, 2009, 12:28:07 PM7/3/09
to Comedi: Linux Control and Measurement Device Interface


On May 5, 7:41 pm, Ian Abbott <abbo...@mev.co.uk> wrote:
> On 01/05/09 21:06, mathmys...@googlemail.com wrote:
>
> > hello, is there any way comedi can supportUSBnational instrument
> > devices, I have something that is the same model as one of the
> > supported PCI devicesUSB-6259 (which maches PCI 6259), is it simply a
> > matter of extending the drivers to talk throughUSB? or is it more
> > complicated than that?
>
> > thank you for your help
>
> I suspect it would be easier to write one or more drivers for theNIUSB
> devices from scratch rather than try and addUSBsupport to the existingNIdrivers.
>

Hi,

We have one of these USB-6259 in our lab, and it would be great to
be able to use it with Comedi. Started to write a driver for it. It
was relatively simple to have it recognize the board and load the
(currently totally dummy) driver when the box is plugged in. Did some
work on another PCI driver before and that made sense, but checking
the current USB drivers (in the staging drivers section of the kernel,
that seems to have the latest ones) all of them look quite different
to me.

Do you guys have some advice how to go about this? Where can I find
some more concrete information? The NI user manuals have virtually
nothing on programming since they want people to use their drivers. Or
which driver is considered the clearest or most mature that I should
check out in more detail?
Also, since there is support for the PCI version - am I on the right
track that the USB version would have the very same commands but sent
over the USB bus? Or is it completely wrong intuition?

Some of the USB drivers seems to manage the firmware as well, do you
think it is necessary in this case as well?

Thanks for any suggestions in advance. We have quite a few boards in
our lab that don't seem to be supported yet, hope to get the driver
development going and and share them soon.
Cheers,
Greg

Sarthak P

unread,
May 10, 2011, 1:07:39 AM5/10/11
to comed...@googlegroups.com
Hey Greg, any update on this?

I need to write a driver for the NI 9233 card with the NI USB 9162 carrier, and have no clue where to begin.
If you've managed to get something working, could you send me those codes or provide some reference?

Thanks!
Sarthak
Reply all
Reply to author
Forward
0 new messages