Has anyone used a Daheng (Galaxy SDK) camera with Bonsai — and is there appetite for a generic GenICam source? #2669
Unanswered
twheatcroft07
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
Looking at cameras for a Bonsai acquisition setup, and the thing that ruled out most candidates wasn't frame rate or sensor spec — it was whether a Bonsai node exists. Two questions.
What I found unpacking their SDK (Galaxy Windows V2.6.2608.9131 — an Inno Setup installer, so innoextract, not 7-Zip):
They ship a first-party managed assembly, GxIAPINET.dll, in .NET 3.5/4.0/6.0. The 4.0 build is the relevant one, since Bonsai.Spinnaker targets net472.
The API is generic GenICam feature access, not a fixed wrapper — e.g. GetEnumFeature("ChunkSelector").SetValue("FrameID") — so nothing depends on the vendor having wrapped the feature you need.
Acquisition maps cleanly onto a source node: UpdateAllDeviceList → OpenDeviceBySN → OpenStream(0) → StartGrab → DQBuf(timeout) → IFrameData with GetBuffer() (IntPtr), GetFrameID(), GetTimeStamp().
Nothing compiled, so read that as "the API surface is there", not "it works". Community bindings exist for Python (gxipy), Rust (gxci), ROS and Micro-Manager, none with vendor involvement — which suggests it wraps cleanly.
Has this been attempted and abandoned? Is the blocker technical — producer discovery, buffer ownership, per-vendor divergence — or has nobody needed it enough? Or is per-vendor the deliberate design?
I read @glopesdev's older thread on CameraCapture.cs and took the point that sources are the hardest thing to extend Bonsai with — especially cloning every frame, since the next acquisition overwrites the buffer. That seems doubly relevant to a generic source, where the buffer belongs to a producer you didn't write.
Happy to do the work and contribute it if there's interest and I'm not duplicating something.
Thanks,
Tom
All reactions