python-microscope / microscope

Python library for control of microscope devices, supporting hardware triggers and distribution of devices over the network for performance and flexibility.
https://www.python-microscope.org
GNU General Public License v3.0
69 stars 41 forks source link

Can not detect Zylas #104

Closed mickp closed 5 years ago

mickp commented 5 years ago

After using either USB3 or CameraLink zylas on a machine with a version of Solis, the SDK and older versions of Solis can no longer detect the camera. Following up with Andor.

mickp commented 5 years ago

Response to Andor.

Hi, Joe.

Thanks for your response. I've tested with the USB Zyla and it has not worked.

I completely removed:

  • Andor Solis
  • Andor's SDK
  • Bitflow's SDK
  • Andor driver pack then installed Solis 4.31.30024.0 and rebooted. It fails to detect a USB Zyla, and reports "Abnormal program termination" when it exits, which I have not seen before.

Using the DLLs from this Solis install, querying DeviceCount returns 0 (also new behaviour - it used to report '2' for the SIMCAM instances in the absence of hardware). FinaliseLibrary completes without error, so this isn't the cause of Solis' abnormal termination.

So I still have one (or possibly 2) rather expensive paperweights.

What do we try next?

-Mick.

mickp commented 5 years ago

This problem is specific to certain PCs, it seems. On my development PC:

On DeepSIM's 5U PC, I can't detect a CameraLink Zyla. I think this may be a 32/64-bit driver/python issue.

mickp commented 5 years ago

Fixed. 1) With the camera connected, open device manager, and set "show devices by connection". 2) Find the camera in the device tree. Starting with the camera, work up the tree to uninstall each device with the "delete driver" option selected. You'll typically uninstall the camera, a USB hub and a USB host. 3) Find anywhere that BitFlow and Andor stuff has been installed. 4) Use Add/Remove Programs to uninstall any BitFlow and Andor stuff. 5) Go to all the locations found in Step 5, and clean up anything left behind. 6) Search the whole filesystem for atcore.dll. If you find it anywhere on the system or user PATH, remove it and any other at*.dlls. 7) Disconnect the camera. 8) Reboot. 9) Reinstall USB host/hub drivers. Reinstall Solis, telling it to install the Zyla drivers. 10) Reboot. 11) Connect the camera. Wait for drivers to install. 12) Test the camera with Solis.

If the camera works in Solis, copy the DLLs from the Solis folder to somewhere python can find them; it should then use those for microscope.