Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struggling to get Thorlabs Motorized Filter Flip Mount working #96

Open
egdeist opened this issue Jun 26, 2019 · 1 comment
Open

Struggling to get Thorlabs Motorized Filter Flip Mount working #96

egdeist opened this issue Jun 26, 2019 · 1 comment

Comments

@egdeist
Copy link

egdeist commented Jun 26, 2019

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
Copy link
Contributor

natezb commented Jun 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants