LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW crashes when creating serial reference on visa block (Redhat 7.5 Linux)

Solved!
Go to solution

LabVIEW crashes when I try to create a serial reference constant or input on the visa init serial block.

 

I am running  Redhat 7.5 Linux. and LabVIEW 2018 64bit.

 

I found this post when searching the forums that may contain a solution:

https://forums.ni.com/t5/LabVIEW/NI-VISA-5-1-2-exits-closes-right-after-launching-it-on-a-Linux/m-p/...

 

However, I do not know where to put the code described in the post since I am running Redhat 7.5 and not OpenSUSE.

 

Could someone with Linux experience point me in the correct direction?

 

Thank you.

0 Kudos
Message 1 of 7
(3,316 Views)

I dealt with a similar sounding problem earlier this year, let me know if the steps below help.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MmJSAU 

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 7
(3,308 Views)

I'm running NI-VISA 17.0.   For some reason, NI-VISA 17.5 does not have Redhat 7.x as a supported OS, so I did not update to that or the 18.0 version.

 

I tried to run updateNIDrivers from the terminal and I receive the following error message:

 

[hughj@delisserlinuxrh7 bin]$ sudo ./updateNIDrivers
nikal: ERROR: Error locating kernel sources for the requested kernel version (3.10.0-693.el7.x86_64).
usage: ./updateNIDrivers [--no-prompt] [kernelVersion]
   kernelVersion
      Specify the version of a kernel installed on the system.
      A /lib/modules/<kernelVersion> directory should exist for each
      kernel installed. The currently running kernel is the default
      for ./updateNIDrivers if no argument is provided.
      Run 'uname -r' at the command prompt to find the version of the
      currently running kernel.
   --no-prompt
      runs in no prompt mode.  Useful if calling this script from
      another script.  Messages are still printed to the screen and
      the return value can be checked for status.
   --fast
      use fast shortcuts to determine whether modules need to be rebuilt.

 

Is there something wrong with my kernel?

 

BTW running from the terminal, I do get the same error in the help article you posted:

 

./labview64
libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
Aborted (core dumped)

 

I also installed the most recent kernel-devel by running the following:

[hughj@delisserlinuxrh7 ~]$ sudo yum install kernel-devel
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,
              : subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Package kernel-devel-3.10.0-862.6.3.el7.x86_64 already installed and latest version
Nothing to do

 

[hughj@delisserlinuxrh7 ~]$ cd /lib/modules
[hughj@delisserlinuxrh7 modules]$ ls
3.10.0-693.el7.x86_64 3.10.0-862.6.3.el7.x86_64
3.10.0-862.3.3.el7.x86_64

 

What should I try next or did I miss a step?

 

Thanks.

0 Kudos
Message 3 of 7
(3,293 Views)
Solution
Accepted by topic author JHugh

The kernel version that you have installed is a more recent version than what updateNIDrivers was looking for specifically. Have you tried specifying the specific kernel version when running updateNIDrivers?

Matt J | National Instruments | CLA
0 Kudos
Message 4 of 7
(3,280 Views)

Thanks!

 

That worked!

0 Kudos
Message 5 of 7
(3,260 Views)

I tried to solve this problem installing the drivers update but I don´t solve the issue.

We installed NI-VISA 15.0 on CENTOS7 with labview 201732 bit. When running our application, the following error message appeared and the program aborted.

libnipalu.so failed to initialize

Perhaps you need to run updateNIDrivers

 

Do VISA 16, 17 or drivers 2018 support centos7 32 bit?

Could be possible to use LabVIEW 2017 with visa 15 without problems?

thanks in advance

0 Kudos
Message 6 of 7
(3,095 Views)

Hey Charli22, 

 

This Page shows that NI VISA 15.0, 15.5 17.0 and 18.2 are compatible with CentOS7. 

 

However, HERE you can see that LabVIEW 2017 and NI VISA 15 are not comparable. 

 

Additionally, This is a solved thread. To get better visibility try creating a new post. 

 

All the Best,

 

Noah B. 

Applications Engineer

National Instruments

 

Noah B.
Technical Support Engineering
National Instruments
0 Kudos
Message 7 of 7
(3,079 Views)