Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Linux: Error -1: DAQmx Base driver failed to initialized

Hi!  I'm trying to use a USB-6008 with the Linux version of nidaqmx-base 2.1.  lsdaq says:

--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6008: "Dev1"    (USB0::0x3923::0x717A::0126584A::RAW)
--------------------------------

That looks fine.  However, I cannot run the data logger or any of the example programs.  The examples compile fine, but give errors:

$ ./acquire1Scan
DAQmxBase Error: DAQmx Base driver failed to initialized.

$ ./acquireNScans
DAQmxBase Error: -1

When I try to run mxbaseconfig, it shows a list of 3 devices, none of which are actually the one installed - maybe they're some sort of examples?

I could not find any documentation describing what "error -1" means or how to resolve it.  Can anyone shed some light on this? How can I try to "initialize the driver" in a way that provides more verbose error reporting?
0 Kudos
Message 1 of 6
(3,451 Views)
It sounds like the DAQmx Base driver may not be installed properly.  Perhaps try re-installing this software.
Also ensure that the 6008 hasn't been configured to work with DAQmx, but rather DAQmx Base.  It will only work with DAQmx Base since it's running on a Linux machine. To change this you'll need access to a machine that has MAX on it (a PC).

Also, what version of Linux are you using?

what are the devices it lists?
Elijah Kerry
NI Director, Software Community
0 Kudos
Message 2 of 6
(3,430 Views)
I'm getting the same error, running with the DAQmx Base 3.1 package for Mac OS 10.5.
Running the lsdaq app, I can see the NI USB-6008 as "Dev 1", but when running the nidatalogger app I get the driver initialization error.
Any solution found for this?

Thanks

Ben
0 Kudos
Message 3 of 6
(3,224 Views)
Hi Benjamin,

If you are simply moving over your Linux machine that is running DAQmx Base 2.1 to a machine running DAQmx Base 3.1, you have to update the device's firmware before proper operation under 3.1. LSDAQ will still detect it but you need to go into Applications/National Instruments/NI-DAQmx Base/Bin and run the firmware updater to run any DAQmx Base 3.1 applications. I hope this helps get your device functioning on your Mac machine. As far as getting the proper functionality on your Linux box, I agree with Elijah K that your driver on your Linux machine needs to be reinstalled.
PBear
NI RF
0 Kudos
Message 4 of 6
(3,199 Views)
I upgraded the device's firmware with the binaries released with version 3.1 of the DAQmx base driver package.
Still get the same driver initialization error.
LSDAQ identifies the unit as a NI USB-6008, although the instrument label indicates it's a USB-6009.

Any other ideas?

Thanks,
Ben
0 Kudos
Message 5 of 6
(3,180 Views)
Hey Ben,

Can you give us details about where this 6009 has been used and your driver upgrade path? I'm particulaly interested in if you used DAQmx Base 2.1 before this or even DAQmx on a Windows machine. Also, did you have OSX 10.4 on this machine with Base 2.1 and then upgrade to OSX 10.5 (or something along those lines)? We definetly want to help you out on this, but so far have been unable to reproduce either (-1 or the 6008 showing up as a 6009) error. Details about your use case should allow us to reproduce and help you fix your issue.

Thanks,
Andrew S
MIO PSE
0 Kudos
Message 6 of 6
(3,159 Views)