01-25-2011 10:38 AM
Some people have reported a workaround for LabVIEW (<=7.0) with the dir_index optimization bit off using tune2fs
(cf. https://wiki.ubuntu.com/LabVIEW)
In my case, the workaround does not work.
It seems that the problem is shared w/ people for openSuse 11.2
01-26-2011 09:53 AM - edited 01-26-2011 09:55 AM
Hello mtblanc,
Thank you for posting on National Instruments' forum.
Is your Operating System in 64 bits? Did you try it with an other distribution of Linux? What kernel is used by Scientific Linux 6? (this is an alpha version)
Romain P.
National Instruments France
01-27-2011 03:36 AM
Dear Romain,
I will stick to english for the interest of the community. If necessary we might also switch to a direct conversation. You can contact me at oklein at cea.fr.
Yes, I have done an extensive review of the different problems with NI in Linux and the situation is quite a mess. To be honest, my motivation is:
1) some new instruments proposed by third parties rely on NI cards (mostly FPGA). Since the control module will be written in LabVIEW, I like to keep the flexibility of using GUI or better the possibility to encapsulate it inside another language. We run VI through python.
2) I appreciate very much the NI-VISA project, which is a way to simply encapsulate different interfaces.
Now, in terms of programing instrument, my choice is to stick w/ python, which puts also a constraint on the distribution/version.
The best distributions for python support is without a doubt Ubuntu or Debian. I think this is mainly due to the difficulty of integrating coherently sevral packages.
Below I will describe different distribution/version and kernel. There are all tested on 32 bits systems.
I have written a tutorial on how to install NI-VISA on Ubuntu 10.04. However there is a problem w/ the GPIB interface. It is not recognized by VISA although, the driver is installed and it is working perfectly.... The Ubuntu kernel is 2.6.32. LabVIEW RTE works also perfectly.
The case of Scientific Linux 5.5: everything works. The problem is that both the python (version 2.4) and glibc (2.5) are too old and will require a backward overall of thousands of lines of codes.
Scientific Linux 6.0 (also kernel 2.6.32) is in this regard more modern: python 2.6 and glibc 2.12. NI-VISA installs properly on my system. The problem is with LabVIEW RTE, which crashes.
OpenSUSE 11.2 seems also to work for LabVIEW RTE. This test was done by third parties. I have not look how to integrate python in this distribution.
Thats the feedback that I can give you at the moment. Maybe in the near future, there will be a debug on why Ubuntu and GPIB do not work, or likely LabVIEW will be also soon ported to RHEL 6.0. Any idea of when this is going to happen?
Kind regards,
Olivier
01-27-2011 10:05 AM
Scientific Linux 6.0 is not supported by National Instruments.
I invite you to follow this link : here
About your question, I have no information about a future update of GPIB support in Ubuntu.
Best regards,
Romain P.
National Instruments France
06-09-2011 05:35 AM
Hi!
I'm having the same problem with a simple application and again on Scientific Linux 6.0.
What is strange is that the built application can be launched without any problem from the project explorer (right click on the build specification and than "run").
Calling the application from the shell gives the reported error....
Marco
@Romain P: the link is broken
06-09-2011 10:48 AM
In my case the problem was due to some conflict between Labview RTE and SELinux.
I've put SELinux in permissive mode (changing the file /etc/selinux/config and rebooting) and the application begun to run as expected!
Marco
09-13-2011 06:01 AM
Great trick marco 🙂
09-13-2011 07:44 AM
thanks giordy72.
To be honest I've been helped by NI Italy Support Team 😉
09-13-2011 08:52 AM
If you don't want to turn all of SELinux "off", you can still use the LabVIEW RTE as long as the "allow_execheap" boolean is enabled [1].
[1] Manual for setsebool
http://linux.die.net/man/8/setsebool
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)