You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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
def list_instruments():
print('did we get here') #diagnostics - CAR
[..remaining code..]
and then attempt to call list instruments in a spyder environment
from instrumental import instrument, list_instruments,
print(list_instruments())
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: