Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6008 and linux (Mandriva)

Hello,
   I'm trying to use a USB-6008 device from linux, up to now without much success.
I'm running Mandriva 2007.0 (which I know is unsupported), but I just installed a 2006 to check and I get exactly the same problem on the 2006, so it's not a distribution-dependent problem.
My question on the french forums remained without answer..... so here is a description of the problem:

The kernel I'm using:

Linux henricus.u-strasbg.fr 2.6.17-11mdv #1 SMP Tue Feb 13 11:59:10 MST 2007 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GNU/Linux

I connected the device and syslog reports that it's been identified.  The green led on the 6008 blinks (and keeps blinking).

I downloaded the latest version of DAQmx base and ran "INSTALL".
There is a problem with the post-install script of nikal (compilation error), which I could solve editing nikal.c and commenting out the lines:
#ifndef put_page_testzero
#define put_page_testzero(p)   atomic_dec_and_test(&(p)->count)
#endif


(the reason is that in the current kernel, put_page_testzero is now a function instead of a macro).
With Mandriva 2006 I don't need this modification, but the result is the same....

After DAQmx base is installed, lsdaq correctly lists the device:
[root@henricus ~]# lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6008: "Dev1"    (USB0::0x3923::0x717A::01274154::RAW)
--------------------------------

When I fire up nidatalogger, there are two possibilities:
1) the device is not detected (nothing appears in the "Physical Channel" combo box)
2) everything is ok and I have the 8 channels "Dev1/ai0" ... "Dev1/ai7".
Possibility 1) only happens if I have just connected the device and performed no operation at all (lsdaq is enough to go to possibility 2).

Within nidatalogger, I select Dev1/ai0 without changing any other option.  Nothing is connected to the 6008, so I expect to acquire some noise.
When I start the acquisition (small arrow) the application stops with an error messagebox:

Error -200170 occurred at Physical channel specified does not exist on this device.
Refer to the documentation for channels available on this device.

I've tried compiling the C demo programs with the same results:
the first operation performed with the 6008 works, any subsequent attempt fails with the same error as above.

For example, with acquire1Scan, the first run reports:
Acquired reading: 0.000777
Any subsequent one report the error I mentioned above.
At any time lsdaq correctly lists the device.

It would look like something is going wrong after communication is performed once (resources not freed?)

Some other posts suggested checking the 6008's firmware, how do I do it from linux?

Any suggestion on what to do is welcome.....
0 Kudos
Message 1 of 12
(5,569 Views)

Hey,

I guess you're french so I'll answer in french :

La solution est la suivante (j'éspére) :

1)      Sous Windows

 

·        Installer NI DAQmx base

·        Brancher l’USB

·        Installer le firmware (automatiquement)

·        Lancer MAX

    • Se positionner sur l’USB (dans périphériques NI DAQmx)
    • Dans « outils »  aller dans « configuration NI DAQmx >> sélecteur de driver USB NI DAQmx » cliquer sur « Refresh » et sélectionner « NI DAQmx base », cela permet d’updater le Firmware.

 

 

2)      Sous Linux

 

·        Brancher l’USB

·        Se placer dans le répertoire « usr/local/natinst/nidaqmxbase/bin »

·        Taper «. /lsdaq » cela devrait lister le périphérique USB

·        Taper «. /mxbaseconfig », cela lance l’utilitaire de configuration

En ésperant que cela vous aidera,

Cordialement,

Richard Keromen

Message 2 of 12
(5,552 Views)
I'm not french but I work in France, donc le francais c'est ok 🙂

J'ai essaye, mais j'ai un probleme tres tot: sous windows (2000), j'ai installe DAQmxbase 2.2.  Lorsque je lance Measurement and Automation Explorer, je ne comprends pas comment me positionner sur USB dans peripheriques NI DAQmx, pour le USB sur la gauche il y a Systeme->Peripheriques et interfaces->USB devices.
De plus, dans le menu outils il n'y a pas "configuration NI DAQmx"..... je ne trouve cette option meme pas mentionnee dans le help.....
J'ai essaye de desinstaller et reinstaller (avec les options par default), mais aucun changement.

Je suis sous Win2000, patched il y a environ un an, les seuls logiciels installes sont "Ken Ward's Zipper", MPLAB IDE et Mozilla Firefox.
Est-ce qu'il faut des logiciels specifiques installes (e.g. .NET framework)?

0 Kudos
Message 3 of 12
(5,543 Views)
Success!!!!

Ok, after installing both DAQmx and DAQmxBase on windows I was able to install the new firmware from windows as indicated above.

It works fine in linux (Mandriva 2007), with the minor modification to nikal I indicated above!

Thanks and be prepared for more questions (on developement) in the future....
0 Kudos
Message 4 of 12
(5,540 Views)
Hi,

Im trying to install USB-6008 on openSuse 10.2
Linux GRW279-1 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux

Im having the Exact same problem as Barsella described earlier, does anyone know the cause/solution?
Barsella, how did you get it to work?

thanks
0 Kudos
Message 5 of 12
(5,368 Views)
Hi Dzhou,
 
Wich version of NI-DAQ do you use ? It's NI-DAQmx or NI-daqmx base ?
Wich version of NI-KAL have you installed ?
 
Regards,

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 6 of 12
(5,331 Views)
I have Nidaqmx 8 for suse, Nikal 1.5, Nidaqmx  base 2.1 installed in this specific  order
(this setup is the closest I got USB 6008 to working)

when I just install nidaqmx base or install it first.
I get the following error:

<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><meta name="GENERATOR" content="OpenOffice.org 2.1 (Linux)"><meta name="CREATED" content="20070614;9450100"><meta name="CHANGED" content="16010101;0">
Jun 13 16:41:41 GRW279-1 daqmxbase_listdevices: [libnipalu.so.1.11] Warning: source/lib/linux/linLoadKern.cpp:168 - libKernelDriverLoad: Failed to open nipalk, errno: 2

Jun 13 16:41:41 GRW279-1 daqmxbase_listdevices: [libnipalu.so.1.11] Warning: source/initcln/initcln.cpp:147 - Posix: Init kInitClnPackage: ker
nelDriver: failed! status=-50204

Jun 13 16:41:41 GRW279-1 daqmxbase_listdevices: [libnipalu.so.1.11] Warning: source/package/posix/ulibEntry.cpp:191 - initialize: unable to l
oad NI-PAL. status=-50204



0 Kudos
Message 7 of 12
(5,327 Views)
Unfortunately, NI-DAQmx base 2.1 will not support suse 10.2
 
On this web page it's write that NI-DAQmx base 2.1 support Linux distribution for :
  • Red Hat Enterprise Linux WS 3 & WS 4
  • Mandrakelinux 10.1 Official
  • Mandriva Linux 2006
  • SUSE Linux 10.0 & 10.1
Regards,

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 8 of 12
(5,320 Views)
Im sorry I'm running Suse 10.1 (previous was a typo)
Anyone know the cause or solution to any of the about errors?

Thanks
0 Kudos
Message 9 of 12
(5,311 Views)

I have installed Mandriva Linux 2006, NI DAQmx base 2.1.0, NI KAL 1.6.0 in that order. My device is getting detected by giving the lsdaq command. I try to run the example program acquire1Scan.c . I have specified chan  = "Dev1/ai0". But i get an error "Physical channel specified does not exist on this device". I am unable to proceed. Pl help

0 Kudos
Message 10 of 12
(4,428 Views)