Open conronc opened 5 months ago
I was able to bypass this issue by importing the list_instruments() function from thorlabs_ccs.py directly
from instrumental.drivers.spectrometers.thorlabs_ccs import list_instruments
I'm not sure what is preventing the intended function of lazy loading this function definition properly, but someone may want to look into duplicating this issue.
I use a CCS200 spectrometer which I can verify is appropriately connected by using the pyvisa resource manager
output:
(the query is required to force pyvisa to recognize USB devices, otherwise it will only recognize the three ASRL devices)
However I cannot get Instrumental-lib to recognize the CCS200 thorlabs device. this device used to work with Instrumental-lib, though I do not recall which version was used on the computer that used it, something about the more recent Instrumental-lib has broken this work.
In an attempt to diagnose this, I've included the following test code in the instrumental\drivers\spectrometers\thorlabs_ccs.py
and then attempt to call list instruments in a spyder environment
however the test print is never triggered. I'm not sure why this is, but it seems like there's a completely broken attempt to call this module.
-CAR