Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

NI6225 on Ubuntu 10.04 Lucid Lynx possible ?

I would like to install NI-DAQMX for my PCI card NI6225. My linux version is Ubuntu 10.04 with the kernel version 2.6.32-21.

First of all I have downloaded nidaqmx-8.0.1f0 driver, then I have tried to install it with the following su command :

#bash INSTALL

My first problem was the rpm dependancies which refering to glibc. That is why I had the option : --nodeps

#bash INSTALL --nodeps

The next problem was about rpm installation on Ubuntu. I had to add the option --force-debian in the file INSTALL for each rpm call.

Finally, the installation started.

During the installation of nipali and nimxs, I have obtained some insserv warning. After a research on Google, I found the following link and applied the patch : https://bugs.launchpad.net/ubuntu/+source/insserv/+bug/467000

Number of warnings had been reduce but I already have insserv warnings. The end of the installation fails :

....

./uninstall.sh: line 13: .: Makefile.in : fichier introuvable
Uninstalling NI-KAL (nikal): done
/bin/rm -rf objects
Updating NI-KAL:
NI-KAL update failed.

....

make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-21-generic »
  CC   /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_getKernelPageTableEntry’:
/usr/local/natinst/nikal/src/objects/nikal.c:1795: error: implicit declaration of function ‘pte_offset’
/usr/local/natinst/nikal/src/objects/nikal.c:1795: warning: assignment makes pointer from integer without a cast
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_mapUserPageTableEntry’:
/usr/local/natinst/nikal/src/objects/nikal.c:1808: warning: return makes pointer from integer without a cast
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_getPhysicalAddress’:
/usr/local/natinst/nikal/src/objects/nikal.c:1996: warning: assignment makes pointer from integer without a cast
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Erreur 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Erreur 2

....

ERROR: make of nikal kernel module failed, not installing kernel module.
   updateNIDrivers should be called again after fixing the problem.
   Logging failure...
   Include the file /tmp/niSystemReport.out.gz when contacting
   National Instruments for support.

...

The complete installation sequence is attached in file nierror. I have added the archive /tmp/niSystemReport.out.gz

Thanks in advance for helps

Download All
0 Kudos
Message 1 of 14
(9,469 Views)

Here the good nierror file...

0 Kudos
Message 2 of 14
(4,954 Views)

You will need to install the NI-KAL 2.0 beta in order to support your kernel. Once you have installed that, run the DAQmx 8.0.1 installer again.

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)
0 Kudos
Message 3 of 14
(4,955 Views)

You can get the KAL 2.0 beta by downloading/install the NI-VISA 5.0 Run-Time Engine beta, here:

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

Justin E
National Instruments R&D
0 Kudos
Message 4 of 14
(4,955 Views)

Thanks for your answers...

During the installation of NI-Visa, I obtain :

*****************************************************************************
  NI-VISA Runtime for Linux
     version 5.0.0b5 for Linux
*****************************************************************************

National Instruments products support the following Linux distributions:
   openSUSE
   Red Hat Enterprise Linux Desktop + Workstation
Refer to README.txt for the latest information at the time of release.
Refer to www.ni.com/linux for the most recent information about Linux
support at National Instruments.

*****************************************************************************
  WARNING!
  THE SOFTWARE YOU ARE ABOUT TO INSTALL IS A PRE-RELEASE VERSION
  REFER TO README.txt FOR ANY KNOWN ISSUES
*****************************************************************************

Continue? [Yn] y

Checking required install tools...
Checking installer tool versions...
dpkg found
rpm        4.7.2 can be used with a default installation path
tar        1.22-2
Checking dependencies...
glibc      2.11.1
Unpacking install files to /tmp/nivisa-runtime-5.0.0b5.install...

.....


License

.....

Do you accept the license? [ynq] y 

NI-VISA Runtime for Linux version 5.0.0b5
is about to be installed using rpm at /usr/local/natinst

Would you like to continue? [Yn] y

Installing NI-VISA Runtime for Linux version 5.0.0b5...
Pre Installation .
Post Installation .
Pre Installation ...........
Post Installation ...........

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

NI-VISA Runtime for Linux Installation completed successfully.

Then when I install nidaqmx package, I obtain the same errors (without NI-VISA installation). Is the NI-VISA installation really successfull ? When I try to uninstall it, nothing seems to be installed....

0 Kudos
Message 5 of 14
(4,955 Views)

I have received your script but the folder nidaqmxbase doesn't exist in /usr/local/natinst. In addition in folder /usr/local/natinst/nidaqmx/etc/ there is no folder hotplug or usb. Moreover, I don't undestand the relation between usb and my pci card ???

Thanks in advance for your help

0 Kudos
Message 6 of 14
(4,952 Views)

I untargz the package which is present in NI-VISA iso. After using Alien, I installed manually my new .deb. Just 2 packets failed :

niorbi_1.9.3-1_i386.deb
nirpci_4.2.0-1_i386.deb

I obtained a lot of warnings concerning insserv... but the installation of nikal seems to be ok !

Then I executed the following commands:

cd /usr/local/natinst/nikal/src/nikal

./configure


cd /usr/local/natinst/nikal/bin

./updateNIDriver

No problem.... -> Reboot

modprobe nikal

lsmod

Module                  Size  Used by
nikal                  57306  0

------------------------------------------------

No problem for this step

Then now, I want to know what is necessary to install my pci NI6225 card ?

0 Kudos
Message 7 of 14
(4,955 Views)

Please have a look at one of the documents posted in this group (linked below), and extend the procedure for the RPM packages in the NI-DAQmx 8.0.1 distribution.

NI-VISA and NI-KAL on Ubuntu Karmic and Lucid

http://decibel.ni.com/content/docs/DOC-11652

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)
0 Kudos
Message 8 of 14
(4,955 Views)

First of all, thanks for your answers.

I have converted all package in NI-VISA and NIDAQMX iso(s) to .deb. Then I have replaced the older corresponding packets from nidaqmx8.0.1.

When I launch the installation, everything is correct.

The command lsmod displays nipalk nikal modules. After the execution of updateNIDrivers, I obtain :

nimru2k               427897  2
nimxdfk               477896  4 nimru2k
nimdbgk               360232  5 nimru2k,nimxdfk
nipxirmk              115018  2
nidimk                320599  7 nimru2k,nipxirmk
niorbk                 95647  5 nimru2k,nimxdfk,nimdbgk,nipxirmk,nidimk
nipalk               1220783  13 nimru2k,nimxdfk,nimdbgk,nipxirmk,nidimk,niorbk
nikal                  57562  1 nipalk

Everything seems to be ok... but when I use the command nilsdev, nothing is detected...

I have tried a method which has been proposed on your forum :

- To have the lo network interface configured (need to add /sbin/ifconfig lo 127.0.0.1)

- To have Write acces to /usr/local/ (need to write some file into a max folder)

- To start the following services or process :

     /usr/local/natinst/max/sbin/nimxs /usr/local/natinst/max/libmxssvr.so
     /usr/local/natinst/nipal/etc/init.d/nipal start
     /usr/local/sbin/nipalsm /etc/natinst/nipal/services/libnidevldu.so.1.4.1
     /usr/local/sbin/nipalsm /etc/natinst/nipal/services/libnipxirmu.so.1.6.0

nilsdev doesn't return answer...

0 Kudos
Message 9 of 14
(4,955 Views)

Since you have made it further now can you attach a new niSystemReport?

(at first it was compile problem, now a matter of hardware detection it sounds like)

Everything seems to be ok... but when I use the command nilsdev, nothing is detected...

nilsdev doesn't return answer...

I assume there are no errors output from nilsdev?

0 Kudos
Message 10 of 14
(4,955 Views)