10-18-2010 10:50 AM
@Dave_mag wrote:
when I run the c example ./acquire1Scan it takes a long time to acquire 1 value (more than a minute)
It sounds like you're observing behavior that other customers have reported [1]. I've been unable to reproduce this, but am still trying 🙂
[1] Linux Users Group: program locks on DAQmxBaseCreateTask
http://decibel.ni.com/content/thread/5332?start=0&tstart=0
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)
10-26-2010 11:54 AM
So that everyone can benefit from the info here is solution I found for this problem using the workaround posted by Joe.
http://decibel.ni.com/content/docs/DOC-13862#comment-13038
Thanks Joe!
Workaround steps NI-DAQmx base 3.3.4 for OpenSuse 11.2 
------------------------------------------------------
    "COPY NIDAQMX 3.4 CD TO ~/bin"
    "COPY NIDAQMX 3.3 CD TO ~/bin/NIDAQmx_3_3 
     cd /usr/src/linux
     make cloneconfig
     make modules_prepare
     cd ~/bin
     ./INSTALL
ANSWER AT THE PROMPTS
--------------------
     Do you want to install NI-DAQmx Base for C? No
     Do you want to install NI-DAQmx Base USB Support? Yes
     cd NIDAQmx_3_3
     rpm --install labview82-rte-8.2.1-2.i386.rpm
     rpm --install nidaqmxbase-cinterface-3.3.0-f0.i386.rpm
     /sbin/yast2 --install libstdc++33
     cd /usr/src/linux/; make mrproper
     zcat /boot/symvers-2.6.31.5-0.1-default.gz > Module.symvers
     make cloneconfig
     make modules_prepare
     updateNIDrivers
     reboot
AFTER REBOOTING
---------------
     lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6008 OEM1:"Dev1"    (USB0::0x3923::0x71D6::0151EA70::RAW)
--------------------------------
      cd /usr/local/natinst//nidaqmxbase/examples/ai
      make
      time ./acquire1Scan
Acquired reading: 0.001168
real    0m9.955s
user    0m9.173s
      time ./acquireNScans
Acquired 1000 samples
data[0] = 0.001168
data[1] = 0.001168
data[2] = 0.001168
data[3] = 0.001168
data[4] = 0.001168
data[5] = 0.001168
data[6] = 0.001168
data[7] = 0.001168
data[8] = 0.001168
data[9] = 0.001168
real    0m10.264s
user    0m9.409s
sys     0m0.244s