Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems to install NI-VISA on Ubuntu 22.04.3 LTS

Hello,


I would like to install NI-VISA on Ubuntu 22.04.3 LTS as a back-end for a GPIB-USB-HS from National Instruments. After installing NI-VISA for Jammy (normal version not stream) and after a restart installing pyvisa the python execution crashes when trying to access the adapter. The crash report shows: Sorry, the application python3.10 has stopped unexpectedly, Title: python3.10 crashed with SIGABRT. The python window shows:

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvisa
>>> rm = pyvisa.ResourceManager()
libnipalu.so failed to initialize
Verify that nipalk.ko is built and loaded.
Aborted (core dumped)

Someone has a hint how I could fix this?


I saw the following links:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DuP7CAK&l=de-DE
https://stackoverflow.com/questions/51646804/libnipalu-so-failed-to-initialize-error-for-all-ni-rela...

https://forums.ni.com/t5/Linux-Users/Using-NI-VISA-with-Arch-Linux-or-Ubuntu-14-04/td-p/3462358?tsta...

 

Kind regards,

 

Lamnidae

 

#edit:

After a software update triggert by the ubuntu software updater the errors are gone. But the instruments connected to the GPIB-USB-HS adapter are not listet:

 

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvisa
>>> rm = pyvisa.ResourceManager()
>>> rm.list_resources()
('ASRL1::INSTR', 'ASRL5::INSTR')
>>> quit()

 

Where the ASRL1 and ASRL5 is should be an instrument with GPIB.

0 Kudos
Message 1 of 1
(834 Views)