Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6008 Linux Ubuntu doesn't show up with lsdaq

Here's what I get;

lsmod | grep ni
nipalk               1294192  2 NiViPciK
nikal                  68576  2 nipalk
usbcore               113668  5 usb_storage,nikal,uhci_hcd,ehci_hcd


 lsusb
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 007 Device 009: ID 3923:717a National Instruments Corp.
Bus 007 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000


 lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6008: "Dev1"    (USB6008)

I had created an alias, "USB6008", for the device in visaconf

unplugged it and plugged it back in to get
dmesg |tail
usb 7-1: USB disconnect, address 9
usb 7-1: new full speed USB device using uhci_hcd and address 10
usb 7-1: configuration #1 chosen from 1 choice


ls -l /dev/bus/usb/007/010
crw-rw-r-- 1 root root 189, 777 2007-11-05 14:18 /dev/bus/usb/007/010


0 Kudos
Message 11 of 16
(4,159 Views)
Manually change the permissions of the following files to 666. If you can use the Device afterwards as a normal user the problem lies in the way you system uses /etc/udev or /etc/hotplug. Look at the scripts there.

chmod 666 /proc/bus/usb/[]/[]
chmod 666 /dev/bus/usb/[]/[]

lsusb shows you what replaces the []

Regards,

studentTUD


Message Edited by studentTUD on 11-07-2007 04:30 AM
Message 12 of 16
(4,139 Views)
Thanks for the help.  It is in the way udev mounts the NI-USB6008.
When I "chmod 666 /dev/bus/usb/[]/[]" I can use it as a normal user.
Now I need to figure out how udev works on a device like this.

It works fine as a regular user when I plug it into my laptop. I'm guessing this is all set up in /etc/udev/udev.rules?  I don't see any difference between udev.rules on the laptop and the lab's desktop.

0 Kudos
Message 13 of 16
(4,128 Views)
Hello !

I am trying to install the nidaqmxbase-3.1.0 driver on my Ubuntu 7.10 Gutsy Gibbons. (I know this ditri is not supported, however I don't have any choice).
My kernel version is .2.6.22-14-generic.


I have cautiously followed the explanation given by studentTUD, however I still obtain this message when trying to run the INSTALL script : (see end of mesdsage for the full output when running INSTALL)

******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.22-14-generic/build does not appear to be
* for the 2.6.22-14-generic kernel.
* Ensure that kernel source for the 2.6.22-14-generic kernel is installed
* and configured.  Refer to the README file for the product you are           *
* installing for information about configuring your kernel source.            *
******************************** ERROR ****************************************

The source recompiled correctly when configuring the kernel.  I was wondering if after doing theses steps :

"   cd /usr/src/linux
   sudo cp /boot/config-<Kernel-Vers.> /usr/src/linux/.config
   sudo make oldconfig
   sudo make modules_prepare "

I have to change directory to
/usr/src/linux-headers-<Versionsnummer> before doing this step:
  
sudo
cp /boot/config-<Kernelversion> /usr/src/linux-headers-<Versionsnummer>/.config
   sudo make oldconfig
   sudo make modules_prepare


Because if I don't switch the directoy, both commands are alright, but I obtain the error message when running INSTALL nivisa and if I switch the directory, make module_prepare does not work and launch an error message ....

Of course, afterwards, as the installation aborted lsdaq only shows the following error message because no runtime has been installed :
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
/etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices: error while loading shared libraries: liblvrtdark.so.8.2: cannot open shared object file: No such file or directory
--------------------------------


Any help would be appreciated !
Thanks !

Simon Ruffieux


Here is the full message I obtain when running INSTALL:

nomis@nomubu:~/Desktop/copynidaq$ sudo nivisa/INSTALL --no-prompt --accept-license --force
[sudo] password for nomis:

  **********************************
  * NI-VISA 4.0.0 for Linux/x86
  **********************************

rpm 4.4.1 will be used with a default installation path

National Instruments products support the following Linux distributions:
   Mandriva Linux
   SUSE Linux
   Red Hat Enterprise Linux WS
Refer to readme.txt for the latest information at the time of release.
Refer to www.ni.com/linux for the most recent information about Linux
support at National Instruments.

This software is covered by the included license file (LICENSE.txt).
By installing this software you are acknowledging acceptance of the
terms of the license.

Searching for installed components ...

NI-VISA Development 4.3.0 requires CVI Runtime 8.0.
NI-VISA Configuration 4.3.0 requires CVI Runtime 8.0.
This component has been selected automatically.

NI-VISA Runtime 4.3.0 requires NI-ORB 1.8.0.
PXI Services 1.6.0 requires NI-ORB 1.8.0.
This component has been selected automatically.

PXI Services 1.6.0 requires NI-DIM 1.8.0.
This component has been selected automatically.

NI-ORB 1.8.0 requires NI-RPC 3.4.1.
This component has been selected automatically.

NI-VISA Runtime 4.3.0 requires NI-PAL 2.2.0.
PXI Services 1.6.0 requires NI-PAL 2.2.0.
NI-DIM 1.8.0 requires NI-PAL 2.2.0.
NI-ORB 1.8.0 requires NI-PAL 2.2.0.
This component has been selected automatically.

NI-PAL 2.2.0 requires NI-KAL 1.6.0.
This component has been selected automatically.

NI-VISA Development 4.3.0 requires LabVIEW Runtime .
NI Spy 2.5.2 requires LabVIEW Runtime .
This component has been selected automatically.

expr: erreur de syntaxe
The following components will be installed using rpm:
  NI-VISA Runtime 4.3.0              3193 KB  (in /usr/local/vxipnp)
  NI-VISA Development 4.3.0          9303 KB  (in /usr/local/vxipnp)
  NI-VISA Configuration 4.3.0         497 KB  (in /usr/local/vxipnp)
  NI-VISA Server 4.3.0                236 KB  (in /usr/local/vxipnp)
  PXI Services 1.6.0                  791 KB  (in /usr/local/natinst/nipxi)
  NI Spy 2.5.2                       2286 KB  (in /usr/local/natinst/nispy)
  CVI Runtime 8.0                    8555 KB  (in /usr/local/natinst/cvirte)
  LabVIEW Runtime                       1 KB  (in /usr/local/lib/LabVIEW-8.0)
  NI-ORB 1.8.0                        479 KB  (in /usr/local/natinst/.nicore)
  NI-DIM 1.8.0                        600 KB  (in /usr/local/natinst/.nicore)
  NI-RPC 3.4.1                        123 KB  (in /usr/local/natinst/.nicore)
  NI-PAL 2.2.0                        825 KB  (in /usr/local/natinst/nipal)
  NI-KAL 1.6.0                        237 KB  (in /usr/local/natinst/nikal)
Total space required:               27126 KB
Space available:                  7647400 KB

sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
sort: Warning: "+number" syntax is deprecated, please use "-k number"
******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.22-14-generic/build does not appear to be
* for the 2.6.22-14-generic kernel.
* Ensure that kernel source for the 2.6.22-14-generic kernel is installed
* and configured.  Refer to the README file for the product you are           *
* installing for information about configuring your kernel source.            *
******************************** ERROR ****************************************

Installation aborted.





Message Edité par nomisch le 04-08-2008 02:19 PM
0 Kudos
Message 14 of 16
(3,834 Views)

Hi Tom,

 

 

 

the Link  your offered shows 'You are not authorized to view this document'.  Would you please send or post the steps?

 

I get one USB 6008 with the same behavior - 'USB Firmware Loader'  always shown in windows Device Manager with PID 716E.

 

I have search EVERY post and tried every methods on the internet without resolving the problem, and I am about to throw it away as a brick.

 

 

 

ltl

(a NI fan)

 

 

 


@Tom W [DE] wrote:

 

Hi Johannes-

 

PID 0x716E corresponds to a USB-600x device that is in firmware loader mode.  In order to get your device to show up in lsdaq you will need to load the correct firmware to the device, using the steps here.  Once the firmware is correctly loaded, the device will enumerate as PID 0x717A (for USB-6008).

 

Hopefully this helps-

 


 

0 Kudos
Message 15 of 16
(2,112 Views)

Hello ItI,

 

The information contained in the link posted by Tom W has been made availabe in the following KnowledgeBase (also noted by Mathew W). 

 

Best regards,

 

Ali M

Applications Engineer

National Instruments

www.ni.com/support

0 Kudos
Message 16 of 16
(2,065 Views)