Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a version of AD StandardDetector that allows for using the file plugin's "capture" button to save rather than acquire. #596

Open
jwlodek opened this issue Sep 25, 2024 · 3 comments

Comments

@jwlodek
Copy link
Member

jwlodek commented Sep 25, 2024

At some of our beamlines, the modus operandi for specific detectors is to run continuously and use the file plugin's capture button or save button (in single mode) to capture individual frames. This is specifically useful for some slow flat panel detectors that need to warm up and stay in acquisition mode to get acceptable noise levels, and with some of our monitoring/diagnostic cameras, where single snapshots are collected for logs.

Acceptance Criteria

  • Class similar to SingleTriggerDetector is created that will use either single mode / save or capture mode / num capture = 1 / capture as the trigger
  • Tests that check all functionality
  • Test with real detector/camera.
@coretl
Copy link
Collaborator

coretl commented Oct 7, 2024

Is this for file-writing detectors?

@jwlodek
Copy link
Member Author

jwlodek commented Oct 7, 2024

Yes, specifically we want to integrate a Perkin Elmer flat panel detector. To get acceptable performance, it must run continuously, and we use the "save" button in the AD file plugin as the trigger in the ophyd v1 object.

@coretl
Copy link
Collaborator

coretl commented Oct 7, 2024

I suggest that we do this with StandardDetector:

  • Make a PerkinElmerController that controls both a PerkinElmer and an NDPluginCircularBuff:
    • On prepare (or maybe stage?) in internal trigger mode starts the driver in continuous mode and sets the number of triggers on the circular buffer plugin with a buffer of 1 and post-buffer of N-1
    • On arm starts the circular buffer plugin going
    • On disarm stops the circular buffer
  • Then the standard HDF writer plugin should do the right thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants