Skip to content

Advice: implementing support for AndorSDK3+ on Linux #99

Closed
@casparvitch

Description

@casparvitch

Hiya, thanks for the nice package. Andor cameras working nicely on windows.

We're attempting to move to linux, and so I'm digging into pylablib to see if it's simple to swap to .so libs. Also note #69.

I specify the lib location with:

pll.par["devices/only_windows_dlls"] = False
pll.par["devices/dlls/andor_sdk3"] = "/usr/local/lib/libatcore.so"

So far the roadblocks I've come up against:

  • Even with the only_windows_dlls lib param set to False, you're blocked at load_lib here (easy change, remove the 'not')
  • Am I correct in assuming that the load_lib function should be called with the cdecl call_conv, e.g. here?
  • is ctypes.WINFUNCTYPEctypes.CFUNCTYPE correct? e.g. here

I will continue attempting to sidestep these issues, but if you have any guidance that would be appreciated 🙏

I am happy to lodge a PR eventually (or not) with a clean solution for a couple of camera types, but if you would like a more general solution (across other devices), I am happy to discuss that too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions