Open mgely opened 3 years ago
Copying over C:\Program Files\IVI Foundation\VISA\Win64\Bin\TLPM_64.dll
from the computer on which it worked to the computer on which it didn't work solves the problem. From this I conclude that there is either
The fact that the scripts provided by Thorlabs in C:\Program Files (x86)\IVI Foundation\VISA\WinNT\TLPM\Example\Python
work, even with the newer .dll, indicate that the problem is not with the thorlabs .dll , but rather due to an incompatibility between the new .dll and the oxart driver
Writing a test script directly to import the oxart driver works.
from oxart.devices.thorlabs_pm.driver import ThorlabsPM100A tlPM = ThorlabsPM100A('USB0::0x1313::0x8079::P1002650::INSTR') power = tlPM.get_power_reading() print(power)
It seems that the problem is with sipyco.
When communicating via sipyco to the Thorlabs PM100A power meter, certain methods fail with the following traceback:
Other commands, such as
get_wavelength()
work. This problem also appears on a different windows machine (caqtus control PC) with a recent artiq-env environment, but does not appear on a windows machine with an older artiq-env (comet control PC).