-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi all,
I'm setting up a Python protocol with mio to automaticallly and sequentially activate four UCLA miniscopes over a 24‑h cycle.
Maybe I am missing something very trivial but mio does not detect the miniscope connected to the PC despite the miniscope appears in device manager, it is appropriately recognized and operated by the software "Miniscope-DAQ-QT-Software" and Power Shell finds the miniscope.
Any time I try to run this bit of script:
Camera.capture(source='fpga', show_video=True)
time.sleep(1)
I get the error:
Mio.exceptions.DeviceOpenError: Cannot open device: (the error is -1: OpalKelly module does not "see" the miniscope.)
I think the bitstream I feed is the correct one (XEM7310-A75/USBInterface-8_33mhz-J2_2-3v3-IEEE.bit), so this should not be the problem either. But can it be I am using the wrong device Id in the config yaml file? How does a correct device Id look like?
These are the things I have tried and have not worked:
- Changed DAQ boxes
- Changed USB ports
- Changed USB cables
- Had the miniscope under "Universal Serial Bus controllers"
- Had the miniscope under "Cameras"
- Put jumpers in K1 and K3
- Use different bitstreams
- Added the okFrontPanel (from mio.vendor.opalkelly.win) to PATH
- Moved mio.vendor.opalkelly.win folder to Lib of my virtual environment
- Tried the Opal Kelly functions within mio.vendor.opalkelly.win
- dev = ok.okCFronPanel()
- rec = dev.OpenBySerial("") --> rec = -1
I would appreciate very much any little advice or guidance. I don't know what else to try.
Thanks!