From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

How to install NI-DAQmx 8.0.1 on Ubuntu 10.10 (Maverick Meerkat) 32 bit

I suppose you have a clean install with an updated kernel (2.6.35-27 in my case today)

Please make sure you do not have any comedi module/package installed/loaded in memory

If so, remove the comedi driver (until now I still don't have a "clean" way to do it. Any udev/comedi/2.6 kernel expert around?)

// Get and uncompress NI-VISA in your home directory

// Boot and open a console

cd

mkdir DAQmxInstall

cd DAQmxInstall

mkdir VISA

cd VISA

// Get NI-VISA 5.0 ISO on :

// http://joule.ni.com/nidu/cds/view/p/id/2044/lang/en

// Open the ISO and copy nivisa-runtime-5.0.0f1.tar.gz locally

cp /media/NIVISA-Runtime500L/nivisa-runtime-5.0.0f1.tar.gz ./

tar -zxvf nivisa-runtime-5.0.0f1.tar.gz

// Get and uncompress NI-DAQmx in your home

cd ..

mkdir DAQmx

cd DAQmx

// Get NI-DAQmx 8.0.1 for Linux on

// http://joule.ni.com/nidu/cds/view/p/id/1194/lang/en

// Open the ISO and copy 2 files

cp /media/DAQmx8.0.1f0/nidaqmx-8.0.1f0.tar.gz ./

cp /media/INSTALL ./

tar -zxvf nidaqmx-8.0.1f0.tar.gz

cd ..

// Install the linux source code and needed tools

sudo su

ln -sf /bin/bash /bin/sh

apt-get install alien bum build-essential

apt-get build-dep --no-install-recommends linux-image-$(uname -r)

apt-get install linux-source

// Install NI-KAL

cd VISA/rpms

rm -rf *_64.rpm

alien -k --scripts nikali-2.0.0-f0.noarch.rpm

// Now we have nikali_2.0.0-f0_all.deb in the directory

dpkg -i nikali_2.0.0-f0_all.deb

cd /usr/local/natinst/nikal/bin

. nikaliInstallerUtility.sh

nikaliPostInstall

./updateNIDrivers

Reboot

// Open a console

sudo su

modprobe nikal

lsmod

// You should see nikal in the list

// Install DAQmx with the script

cd DAQmxInstall/DAQmx

./INSTALL --nodeps

// In my case I do not install anything for LV

// If the script reports error about NIKAL, don't worry.

Reboot

// Open a console

sudo su

cd /lib/modules/$(uname -r)/build/include/linux

ln -s ../generated/utsrelease.h

ln -s ../generated/autoconf.h

// Re-install NI-KAL

cd

cd DAQmxInstall/VISA/rpms

dpkg -P nikali

dpkg -i nikali_2.0.0-f0_all.deb

cd /usr/local/natinst/nikal/bin

. nikaliInstallerUtility.sh

nikaliPostInstall

./updateNIDrivers

Reboot 

// Open a console

lsmod | grep ni

// You should see something like

nimru2k               427897  1

nimxpk                 33632  0

nipxirmk              115030  1

nidimk                320599  5 nimru2k,nipxirmk

nimsdrk               231258  0

nidmxfk               373960  1 nimsdrk

nimxdfk               477896  5 nimru2k,nimsdrk,nidmxfk

nimstsk                78153  2 nimsdrk,nidmxfk

nimdbgk               360232  7 nimru2k,nimsdrk,nidmxfk,nimxdfk,nimstsk

niorbk                 95647  8 nimru2k,nipxirmk,nidimk,nimsdrk,nidmxfk,nimxdfk,nimstsk,nimdbgk

nipalk               1195435  14 nimru2k,nimxpk,nipxirmk,nidimk,nimsdrk,nidmxfk,nimxdfk,nimstsk,nimdbgk,niorbk

nikal                  57402  1 nipalk

// You should see your DAQ devices

nilsdev

// Let's make a test

cd /usr/local/natinst/nidaqmx/examples/ansi_c/AnalogIn/MeasureVoltage/Acq-IntClk

make

./Acq-IntClk

// What if the kernel is updated?

// NI-KAL must be re-installed and the others modules must be updated as well.

// Open a console

sudo su

cd /lib/modules/$(uname -r)/build/include/linux

ln -s ../generated/utsrelease.h

ln -s ../generated/autoconf.h

// Re-install NI-KAL

cd

cd DAQmxInstall/VISA/rpms

dpkg -P nikali

dpkg -i nikali_2.0.0-f0_all.deb

cd /usr/local/natinst/nikal/bin

. nikaliInstallerUtility.sh

nikaliPostInstall

./updateNIDrivers

Regards, Philippe proud to be using LabWindows since version 1.2
// --------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 6
(14,975 Views)

Thank you for this. I can get it to work up until the point of :

lsmod | grep ni

Nothing shows except nikali (which i have to modprobe every time to get it started)

Basically it will not create /usr/local/natinst/nidaqmx

Any feedback would be greately appreciated

0 Kudos
Message 2 of 6
(4,686 Views)

In my case nikal is the only kernel module generated/installed to /lib/modules/$(uname -r)/kernel/natinst. Moreover, nikal is not loaded by default (after reboot).  I see a problem with DAQmx installation part:

---

Installing NI-DAQmx for Linux Installer Distribution version 8.0.1f0...

Pre Installation ...............................

rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.

Error installing NI-DAQmx for Linux Installer Distribution 8.0.1f0.

Installer is aborted.

---

Regards

LAW

0 Kudos
Message 3 of 6
(4,686 Views)

Hello,

Thanks for this explanation, but i have some problems :

I've got a kernel named linux-image-2.6.32-audithis,i've rename him to find him more easily in grub and for customize thiskernel.

But i don't find the folder generated for this part of script :

sudo su

cd /lib/modules/$(uname -r)/build/include/linux

ln -s ../generated/utsrelease.h

ln -s ../generated/autoconf.h

Andwhen I look what there are in the folders ....../include/linux i findthis files(utsrelease.h and autoconf.h). So, this part is useless forme? Or not?

And more, when I do lsmod |grep ni, there are nikal and nipalk, not the others modules ...

Can you help me?

For information, the script ./INSTALL --nodeps works, there are no error.

Bark Ridley

0 Kudos
Message 4 of 6
(4,686 Views)

Hello,

Thanks for posting! This has been extremely helpful.

However, I hit a problem when I try the command nilsdev - nothing appears, so it would seem that the driver is not recognizing the attached PCI card. However, the command lspci shows that a National Instruments card is connected.

Any help would be much appreciated.

Best,

Julie

0 Kudos
Message 5 of 6
(4,686 Views)

hello,i have the same problem, any suggestion would be much appreciated

0 Kudos
Message 6 of 6
(4,686 Views)