Instrument Control (GPIB, Serial, VISA, IVI)

취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

NI-VISA 4.0 on Ubuntu / Kubuntu

Unfortunately, NI is limiting itself to support only commercial rpm-based Linux distributions. However, applications using NI-VISA need to be deployed in more popular and open Linux distros as Debian or Debian-based (Ubuntu/Kubuntu).

I am trying to install the NI-VISA 4.0 Runtime Engine on a Kubuntu (KDE Ubuntu) system. When I run the INSTALL script, I get the following error and the installer ends:

trap:1821 SIGINT: bat trap

Thanks in advance for your help,

FE
0 포인트
1/8 메시지
8,665 조회수
I found out that the Kubuntu shell is a simple POSIX shell (dash), which does not support "bashisms". Instead of running ./INSTALL, I run bash INSTALL, and the installer starts to work, but fails trying to install the components:

The following components will be installed using rpm:
  NI-VISA Runtime 4.0.0              5703 KB  (in /usr/local/vxipnp)
  NI-ORB 1.5.0                        459 KB  (in /usr/local/natinst/.nicore)
  NI-RPC 3.3.0                        102 KB  (in /usr/local/natinst/.nicore)
  NI-PAL 1.11.1                      1768 KB  (in /usr/local/natinst/nipal)
  NI-KAL 1.4.0                        229 KB  (in /usr/local/natinst/nikal)
Total space required:                8261 KB
Space available:                 15099224 KB

Continue? [Yn] y

Installing selected components ...

error: Failed dependencies:
        kernel >= 2.4.0 is needed by nikali-1.4.0-f0.i386
        /bin/sh is needed by nikali-1.4.0-f0.i386
        /bin/sh is needed by nipali-1.11.1-f0.i386
        /bin/sh is needed by nirpci-3.3.0-f0.i386
        /bin/sh is needed by niorbi-1.5.0-f0.i386
        /bin/sh is needed by nivisa-4.0.0-f0.i386

I have Kubuntu 6.10, which uses a kernel 2.6.17 generic.

Thanks for any help,

FE
2/8 메시지
8,651 조회수
I'm guessing the problem is that you are trying to install rpms on a deb-based system.  Probably in this case it is expecting that your kernel was installed via rpm, and it wasn't.  You can try editing the INSTALL script to install the rpms with --nodeps, but if you choose to do this you will need to verify by hand that you meet the dependancy requirements.

Also you have the 2.6.17 kernel.  Unfortunatley that kernel will not work with NI-VISA 4.0 and NI-KAL 1.4.  You should be fine using 2.6.16.

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
3/8 메시지
8,631 조회수
Shawn,
 
Thanks for your response.
 
We are acquiring LabVIEW 8.2 for Linux in order to deploy ATE applications for our Linux network. Our corporation completely migrated out of Red-Hat to Debian and Debian-based distributions some years ago.
 
As far as I understand, NI-VISA 4.0 requires kernel compilation for any Linux distro, and we do not want to touch our stable kernels, at least not yet. A co-worker of yours in sales suggested us to use an older NI-VISA version that does not require kernel compilation. Do you think we could use LabVIEW 8.2 with NI-VISA 3.0 for the development station, and deploy the LabVIEW 8.2 RTE and the NI-VISA RTE 3.0 for our Debian and Debian-based (Mepis and K/Ubuntu) network?
 
Also, what is the reason that NI-VISA 4.0 and NI-KAL 1.4 will not work with the 2.6.17 kernel?
 
Thanks in advance,
 
FE
0 포인트
4/8 메시지
8,624 조회수
All Linux drivers either need to compile against, or be precompiled for a certain kernel version.  This is because the Linux kernel does not provide a stable ABI (application binary interface).  Additionally the Linux kernel does not provide a stable API (application programming interface).  What this means is that nearly every new Linux kernel version changes the API requiring any update to all drivers.

NI-VISA 4.0 and NI-KAL 1.4 have only been updated to work with up to 2.6.16.  The API has once again changed so 2.6.17, 2.6.18, and 2.6.19, and will cause compile errors with NI-KAL 1.4.

Really it is best if you use an officially supported distribution.  If you cannot, do this then I suggest that you search the forums to see if anyone else has been successful.  For example though it may seem unrelated NI-DAQmx on Fedora Core 5 How-to may provide some help with newer kernel versions.  I know I have seen posts about Ubuntu as well.

Shawn B
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 포인트
5/8 메시지
8,619 조회수
Shawn,
 
You made it sound as NI patches to the kernel are the ultimate software solution and the Linux kernels are very deficient. Seeing the fact that NI is not capable of officially supporting the most popular Linux distributions (Debian-based) nor the most used package management (DEB) creates serious doubts. But this is a discussion for another time.
 
Our company already had the painful experience of dealing with RPM-based systems and we are not going back to that. Please ignore whether the Linux distro is NI-supported or not. Could you please anwer the following question from a cross version point of view?
 
Do you think we could use LabVIEW 8.2 with NI-VISA 3.0 for a development station, and deploy the LabVIEW 8.2 RTE and the NI-VISA 3.0 RTE for our Debian and Debian-based (Mepis and K/Ubuntu) network?
 
Thanks in advance,
 
FE
0 포인트
6/8 메시지
8,596 조회수

You made it sound as NI patches to the kernel are the ultimate software solution and the Linux kernels are very deficient.

It seems there has been a misunderstanding.  NI does not patch the Linux kernel.  NI provides Kernel modules that are compiled against the Linux kernel but do not change the Linux kernel in any way.  What I described earlier has nothing to do with the Linux kernel being deficient, but instead why drivers must be compiled against the Linux kernel (there is no stable ABI), and why NI-VISA or more importantly NI-KAL may fail to compile against the latest and greatest Linux kernel (there is no stable API).


Seeing the fact that NI is not capable of officially supporting the most popular Linux distributions (Debian-based) nor the most used package management (DEB) creates serious doubts. But this is a discussion for another time.

Gauging the popularity of Linux distributions can be challenging.  Looking at the numbers on distrowatch.com does not always tell the whole story.  For example National Instruments officially supports openSUSE, Red Hat Enterprise WS, and Mandriva.  Of these three distributions the majority of our customers are using Red Hat Enterprise WS.  This may be surprising since Red Hat is number 29 on distrowatch, and openSUSE and Mandriva are 2 and 5. 

Also I think it is important to say what "officially supported" means.  When we say a distribution is officially supported it means that we have run extensive tests to ensure that our software works on that distrubution.  This makes it less likely that you will run into problems, and if for some reason you do have problems we will be happy to assist and provide support.  NI is certainly capable of supporting different Linux distributions, but we must first evaluate if the demand for the Linux distribution is worth the cost of increased testing and development.  It is important to recognize that we in no way limit you from using alternative distributions, and as I pointed out in my previous post several customers are already doing this, but it also means that you are on your own, since we have not tested that Linux distribution.


Do you think we could use LabVIEW 8.2 with NI-VISA 3.0 for a development station, and deploy the LabVIEW 8.2 RTE and the NI-VISA 3.0 RTE for our Debian and Debian-based (Mepis and K/Ubuntu) network?

I'm afraid that I do not have enough information to answer that question.  I do not know what buses you are using with NI-VISA (serial, GPIB, VXI, PXI, USB, TCP/IP).  I also do not know if LabVIEW or NI-VISA will work with Mepis and K/Ubuntu.  If you already have a copy of LabVIEW 8.2 for Linux then you should be able to test with these distributions, and as I mentioned in my previous post you may be able to find other customers in these forums who are already using these products on Mepis and/or K/Ubuntu.

Shawn B.
Naional Instruments

Use NI products on Linux? Come join the NI Linux Users Community
7/8 메시지
8,590 조회수
Shawn,
 
A hypothetical question:
 
Do you think someone could use LabVIEW 8.2 with NI-VISA 3.0 for a Red Hat development station (for serial and USB applications), and deploy the LabVIEW 8.2 RTE and the NI-VISA 3.0 RTE for a Red Hat network?
 
Thanks,
 
FE
 
P.S. Distrowatch (http://distrowatch.com/stats.php?section=popularity) reports that Ubuntu in the last 12 months has had an average of 2647 hits per day and Red Hat 212. From that viewpoint, Ubuntu is 10 times more popular than Red Hat. Mepis had 1034, 5 times more popular. Debian had 809, 4 times more popular.
 
0 포인트
8/8 메시지
8,579 조회수