mabuchilab / Instrumental

Python-based instrumentation library from the Mabuchi Lab.
http://instrumental-lib.readthedocs.org/
GNU General Public License v3.0
122 stars 80 forks source link

Struggling to get Thorlabs Motorized Filter Flip Mount working #96

Open egdeist opened 5 years ago

egdeist commented 5 years ago

Hello, I am brand new to Instrumental and trying to get it working with a Thoralbs MFF101 flip-in mirror mount using your driver. I am not able to get it to show up with list_instruments(). I do see 3 National Instruments PXI and PCI devices. If I run import instrumental.drivers.motion.filter_flipper I get the error "OSError: cannot load library 'Thorlabs.MotionControl.FilterFlipper.dll' error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'Thorlabs.MotionControl.FilterFlipper.dll'" I have put 'Thorlabs.MotionControl.FilterFlipper.dll' and 'Thorlabs.MotionControl.DeviceManager.dll' in the path using sys.path.insert such that sys.path gives [ 'C:\Program Files\Thorlabs\Kinesis\Thorlabs.MotionControl.FilterFlipper.dll', 'C:\Program Files\Thorlabs\Kinesis\Thorlabs.MotionControl.DeviceManager.dll', 'C:\Python37-32\Scripts\ipython.exe', 'c:\python37-32\python37.zip', 'c:\python37-32\DLLs', 'c:\python37-32\lib', 'c:\python37-32', '', 'c:\python37-32\lib\site-packages', 'c:\python37-32\lib\site-packages\win32', 'c:\python37-32\lib\site-packages\win32\lib', 'c:\python37-32\lib\site-packages\Pythonwin', 'c:\python37-32\lib\site-packages\IPython\extensions', 'C:\Users\Rubidium\.ipython'] I bet I'm missing something basic - any help much appreciated! Thanks, Emma

natezb commented 5 years ago

I'm not 100% sure, but I don't think adding the files via Python's sys.path will work. Try adding it to the Windows PATH variable directly.