Menu

#18 OS X Support

v1.0_(example)
open
nobody
OSX (1)
5
2013-08-15
2013-08-15
No

OSX is not detected in vpp43.py during installation.
This is caused as the "Load Library" function calls os.name which detects "posix" on unix based OS's.

If you change the calls to use sys.platform then this should detect the os with more granularity.

e.g vpp43.py:
import sys
...
#check windows
if sys.platform == 'win32':
..
#check linux
if sys.platform == 'linux2':
..
#check mac
if sys.platform == 'darwin:
not path:
path = "/Library/Frameworks/VISA.framework/VISA"
self.__lib = self.__cdecl_lib = cdll.LoadLibrary(path)

Additionally users may encounter the issue with some of the NI-VISA libraries still being compiled as 32-bit code. I personally just selected the USB driver which is a universal binary in the NI-VISA configuration utility.

Regards
Peter

Discussion


Log in to post a comment.