Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-VISA Crashing MAC OS

Hi all,

 

I am trying to get NI-Visa set up to communicate with some lab instruments using Python (pyvisa) and I have not been able to get either the pyvisa library or the NI-Visa applications (NI-MAX, etc) to run without crashing. I am new to pretty much everything NI-related and relatively new to the Mac OS as well, so hopefully this is a trivial issue.

 

The Error(s) I'm getting

Upon trying to open applications installed by Ni-VISA

Screen Shot 2022-09-29 at 3.22.45 PM.png

 

Upon trying to create a pyvisa ResourceManager object

HOWDY
2022-09-29 15:25:00,088 - pyvisa - DEBUG - No visa library specified, trying to find alternatives.
2022-09-29 15:25:00,105 - pyvisa - DEBUG - Environment variable PYVISA_LIBRARY is unset.
2022-09-29 15:25:00,182 - pyvisa - DEBUG - Not loading dll_extra_paths because we are not on Windows or Python < 3.8
2022-09-29 15:25:00,244 - pyvisa - DEBUG - Automatically found library files: ['/Library/Frameworks/visa.framework/visa', None, None, None, None]
2022-09-29 15:25:00,256 - pyvisa - DEBUG - No user defined library files
2022-09-29 15:25:00,272 - pyvisa - DEBUG - The IVI implementation available
2022-09-29 15:25:00,289 - pyvisa - DEBUG - Not loading dll_extra_paths because we are not on Windows or Python < 3.8
2022-09-29 15:25:00,307 - pyvisa - DEBUG - Automatically found library files: ['/Library/Frameworks/visa.framework/visa', None, None, None, None]
2022-09-29 15:25:00,322 - pyvisa - DEBUG - No user defined library files
2022-09-29 15:25:00,351 - pyvisa - DEBUG - No user defined library files
2022-09-29 15:25:00,359 - pyvisa - DEBUG - Could not open VISA library /Library/Frameworks/visa.framework/visa: Error while accessing /Library/Frameworks/visa.framework/visa: No matching architecture.
Current Python interpreter is 64bit bits
The library in: /Library/Frameworks/visa.framework/visa
found by: auto
bitness: 64

2022-09-29 15:25:00,373 - pyvisa - DEBUG - Could not open VISA wrapper <class 'pyvisa.ctwrapper.highlevel.IVIVisaLibrary'>:
Could not open VISA library:
Error while accessing /Library/Frameworks/visa.framework/visa: No matching architecture.
Current Python interpreter is 64bit bits
The library in: /Library/Frameworks/visa.framework/visa
found by: auto
bitness: 64

Traceback (most recent call last):
File "/Users/ravenstclair/Downloads/FVM-400-control-code.py", line 7, in <module>
rm = pyvisa.ResourceManager()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyvisa/highlevel.py", line 2992, in __new__
visa_library = open_visa_library(visa_library)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyvisa/highlevel.py", line 2904, in open_visa_library
return cls(argument)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyvisa/highlevel.py", line 175, in __new__
raise OSError("Could not open VISA library:\n" + "\n".join(errs))
OSError: Could not open VISA library:
Error while accessing /Library/Frameworks/visa.framework/visa: No matching architecture.
Current Python interpreter is 64bit bits
The library in: /Library/Frameworks/visa.framework/visa
found by: auto
bitness: 64

 

What I've Tried

  • Uninstalling and reinstalling everything (multiple times for good measure)
  • Allowing the kext extension for NI-Visa in recovery mode (listed as a possible solution on the NI website)
  • Confirming that versions, bitness, etc. matches across all programs.

 

My System

Mac OS 11.7 Big Sur, plenty of disk space left, python version 3.10.7

 

 

 

Any ideas?

 

Message 1 of 1
(1,060 Views)