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:
Python3.10.12(main,Jun112023,05:26:28)[GCC11.4.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>importpyvisa>>>rm=pyvisa.ResourceManager()libnipalu.sofailedtoinitializeVerifythatnipalk.koisbuiltandloaded.Aborted(coredumped)
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-related-commands
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.