Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6218 on ubuntu 7.10

Should lsmod show me a list of installed nidaqmx base modules?  When I call lsmod, none of the installed modules appear to relate to National Instruments.
0 Kudos
Message 11 of 18
(1,885 Views)
Let me explain a little bit about how the 621x devices work, but after that, you'll need to do the digging and poking to figure out how Ubuntu configures itself and its USB devices, or ask the community for help as you learn about udev and kernel events.

The USB-621x devices are designed such that they require firmware to be downloaded to them by their host every time they are plugged into the system. When they first connect, they appear as a device in firmware-loader mode (with PID 7269). Once their firmware is loaded, they have a distinct personality and reappear with a different PID. The PID for the 6218 is 7272. All of this is discoverable from the udev *.rules files and accompanying scripts.

Now for the explanation of lsmod. NI uses private methods for interacting with its USB devices, and since the authors for the USB Linux kernel modules have requested that other kernel modules that call into their modules be GPL licensed, NI cannot protect its secrets and also satisfy the USB kernel module developers. Instead, NI communicates to USB devices through the public user-space USB interface provided by the kernel. That explains why you don't see any NI modules attached to your USB DAQ hardware: NI can't run at the kernel level, so it wrote the driver in user-space.
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 12 of 18
(1,861 Views)
Any success? Im having the same exact problem.
0 Kudos
Message 13 of 18
(1,820 Views)
well, it looks like /etc/udev/agents.d/ doesnt even exist. (etc/udev does exist). Which rpm package was supposed to install this?
0 Kudos
Message 14 of 18
(1,817 Views)
well, it looks like /etc/udev/agents.d/ doesnt even exist. (etc/udev does exist). Which rpm package was supposed to install this?
0 Kudos
Message 15 of 18
(1,812 Views)
Sadly, I never managed to fix it.  I am currently using my NiDAQ card in Windows and communicating with the linux computer/robot over the ethernet.  It is not a great solution, but it was the only thing I could manage.  If you manage to make it work, please update!
0 Kudos
Message 16 of 18
(1,799 Views)

I tried on OpenSUSE 11.1 (not officially supported by DAQmx Base 3.3). It did not work after this installation because hotplug and pam_console do not exist anymore.

I added the foolowing rules in /etc/udev/rules.d/50-nivisa_usbraw.rules

 

ACTION=="add", BUS=="usb", SYSFS{idProduct}=="7269", SYSFS{idVendor}=="3923", RUN+="/usr/local/natinst/nidaqmxbase/bin/niusb9162dlfw"
ACTION=="add", BUS=="usb", SYSFS{idProduct}=="7272", SYSFS{idVendor}=="3923", MODE:="0666"

 

Now, the green light on my 6218 device is blinking and lsdaq finds the device in user mode.

Message Edité par titpoul le 05-28-2010 07:56 PM
0 Kudos
Message 17 of 18
(1,654 Views)

Recently, many distributions switched udevcontrol for udevadm and broke our scripts. For a more complete explanation and work-around, see my post in the Linux Users Group: http://decibel.ni.com/content/message/17590#17590

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 18 of 18
(1,583 Views)