mabuchilab / Instrumental

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

Error: (3) b'No camera was detected on the system' #153

Open wslym35 opened 1 year ago

wslym35 commented 1 year ago

Hi y'all. I've been trying to use Instrumental to interact with a ThorLabs DCC1240M camera. So far, my code looks like from intrumental.drivers.cameras import uc480 instruments = uc480.list_instruments() cam = uc480.UC480_Camera(instruments[0], reopen_policy='reuse') data = cam.grab_image() The first time I ran this, it worked like a charm. But after unplugging and replugging in the USB camera, I now get UC480Error: (3) b'No camera was detected on the system. (check installation)' from cam.grab_image(). I checked if the camera was still readable by Thorcam, and it is, so I'm not sure why Instrumental is having a hard time detecting it. I tried to find more information about this error, and can't seem to get anywhere. Any help greatly appreciated, thanks.