Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx 2.0 on SuSE 9.3 returns only Zero readings

We are trying to use our NI DAQ 6221 PCI Card with NI DAQmx Base 2.0
 under SuSE Linux Professional 9.3 (as noted as supported distribution in the README).
When reading from an analog input, only zero values are returned:

janlauff@pershing:/usr/local/natinst/nidaqmxbase/examples/ai> ./acquire1Scan
Acquired reading: 0.000000
janlauff@pershing:/usr/local/natinst/nidaqmxbase/examples/ai>

The Card is working properly in the same setup under Windows XP with LabView 7.1.
Attached is the patched version of aquire1Scan.c which uses DAQmx_Val_RSE instead of differential measurements.

Sincerely
Anlauff
0 Kudos
Message 1 of 7
(4,100 Views)
hello anlauff,

the code seems to be correct. do you get the same result with the "nidatalogger", which is provided by the DAQmxBase?

is there a special reason to use DAQmxBase instead of DAQmx?

regards,

robert h
NI germany
0 Kudos
Message 2 of 7
(4,070 Views)
we installed suse 9.2 since we needed it to work on short notice. we will set up an installation of 9.3 again and see if we can get behind this. also, we will try to have a look at daq mx.
greetings
-jan

Message Edited by janlauff on 05-19-2006 07:41 AM

0 Kudos
Message 3 of 7
(4,057 Views)
we just tried to setup the full version (NIDAQmx 8.0) on the 9.2 installation, but it fails with:
Would you like to continue? [Yn] Y

Installing NI-DAQmx for Linux Installer Distribution version 8.0.0f1...
Pre Installation .............................
Preparing...                ########################################### [100%]
   1:niscarabmm             ########################################### [  4%]
   2:nirpci                 ########################################### [  7%]
   3:nikali                 ########################################### [ 11%]
   4:nipali                 ########################################### [ 14%]
   5:niorbi                 ########################################### [ 18%]
   6:nidimi                 ########################################### [ 21%]
   7:nimdbgi                ########################################### [ 25%]
   8:nimxdfi                ########################################### [ 29%]
   9:nimxpi                 ########################################### [ 32%]
  10:nistci                 ########################################### [ 36%]
  11:nimru2i                ########################################### [ 39%]
  12:nipxirmi               ########################################### [ 43%]
  13:nidaqmxinfi            ########################################### [ 46%]
  14:nimxs                  ########################################### [ 50%]
  15:nidaqmxhelp            ########################################### [ 54%]
  16:nidaqmxef              ########################################### [ 57%]
  17:nicdigi                ########################################### [ 61%]
  18:nitimingi              ########################################### [ 64%]
  19:labview80-rte          ########################################### [ 68%]
  20:nidaqmxcfgi            ########################################### [ 71%]
  21:nimioi                 ########################################### [ 75%]
  22:niscxi                 ########################################### [ 79%]
  23:ni653x                 ########################################### [ 82%]
  24:nidaqmxcapiexmp        ########################################### [ 86%]
  25:nidaqmxcapihelp        ########################################### [ 89%]
  26:nidaqmxcapii           ########################################### [ 93%]
  27:nidaqmxswitch          ########################################### [ 96%]
  28:nidsai                 ########################################### [100%]
Post Installation .............................
FATAL: Error inserting nipalk (/lib/modules/2.6.8-24.20-default/kernel/natinst/nipal/nipalk.ko): Unknown symbol in module, or unknown parameter (see dmesg)

error: nipalk failed to load
possible causes:
   nipalk was not versioned for this kernel (2.6.8-24.20-default)
   modules are not enabled for this kernel (CONFIG_MODULES)
   unresolved symbols
possible solution:
   if you recently installed a new kernel or have rebooted to
   a different kernel then you were previously running then run
   /usr/local/bin/updateNIDrivers
   to version your NI drivers for kernel 2.6.8-24.20-default

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /media/backup AND/OR
www.ni.com/patents

******************************************************************************
* A reboot is required before attempting to use the
* NI-DAQmx for Linux Installer Distribution software.
******************************************************************************
Would you like to reboot now? [yes|no]
dmesg:
nipalk: module not supported by Novell, setting U taint flag.
nipalk: disagrees about version of symbol nNIKAL100_unregisterDriver
nipalk: Unknown symbol nNIKAL100_unregisterDriver
nipalk: disagrees about version of symbol nNIKAL100_registerDriver
nipalk: Unknown symbol nNIKAL100_registerDriver
nipalk: Unknown symbol nNIKAL110_getTimerCount
any ideas?
0 Kudos
Message 4 of 7
(4,030 Views)
you can try the following:
- Change the directory to the /usr/src/linux- directory, where corresponds to the currently running kernel version.

- Run "make cloneconfig" as root to configure the sources for the currently running kernel.

- Run "make modules_prepare" as root to prepare the headers for compilation.

- Completing this step removes the warning: WARNING: Symbol version dump /usr/src/linux/Module.symvers is missing,modules will have CONFIG_MODVERSIONS disabled. Run "make modules" as root to compile all modules and generate Module.symvers; this might take 30 minutes or more to complete.

- Run "/usr/local/bin/updateNIDrivers"
0 Kudos
Message 5 of 7
(4,030 Views)
Thank you for the quick reply, that did the trick. I will look into the 9.3 issue when I have a little bit more time at hand.
0 Kudos
Message 6 of 7
(4,011 Views)
We just confirmed that the full version also works out of the box on 9.3.
0 Kudos
Message 7 of 7
(3,986 Views)