areadetector-driver
OfficialBuild EPICS areaDetector camera drivers
AuthorBCDA-APS
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you design and implement EPICS areaDetector camera/detector drivers that acquire hardware images, package them as NDArray objects, and expose standard detector controls to the IOC ecosystem.
Core Features & Use Cases
- ADDriver-based detector implementation: Create a C++ driver class inheriting from ADDriver (via asynNDArrayDriver/asynPortDriver) to provide a consistent control and data publication model.
- NDArray allocation, metadata, and publication: Allocate NDArray buffers from the NDArrayPool, fill image data, set array-level parameters (dimensions, datatype, color mode, timestamps), publish to downstream plugins, and correctly release buffers to avoid pool exhaustion.
- Acquisition and threading pattern: Implement a robust acquisition thread pattern driven by PV writes (e.g., ADAcquire), including correct lock/unlock behavior around blocking hardware I/O and handling single/multiple/continuous acquisition modes.
- IOCDB template and iocsh registration support: Define driver-specific records via templates and register an IOC shell configuration function so the driver can be instantiated reliably.
Quick Start
Ask the AI to generate a skeleton ADDriver-based C++ class (headers, constructor, acquisition thread, NDArray publish path, writeInt32 handling for ADAcquire) for your detector, including the matching Makefile DBD registrar snippet and a minimal .template file for one driver parameter.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: areadetector-driver Download link: https://github.com/BCDA-APS/opencode-skills/archive/main.zip#areadetector-driver Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.