Skip to content

CSX: [ENH] staging and unstaging a detector #193

@cmazzoli

Description

@cmazzoli

Our fccd has a delicate (thermal, noise, background, ...) equilibrium.
Typically a scan requires the staging of the detector as a first operation before anything else is done.
This put our detector out of its comfortable continuous readout as it waits for its time to be called by count (idle + multiple).
Unfortunately, the waiting time before the experimental station is in the conditions of counting (motors can be slow..) is sometime considerable with the result that the detector is made uselessly waiting already staged.
Would it be possible to postpone the staging of the detector AFTER the first position for the scan is reached?

Just to give you an idea, we can program the detector for a series of useful measurements taking one a fraction of a second each. Sometimes to move slow motors in position can require minutes. This makes the detector staged for more than 6 minutes to acquire few seconds of data in case the motor slowness and its backlash at the beginning (and at the end in a relative scan!) are important. See #100511 for example (RE(rel_scan(dets,sx,-.1,.1,3)) )

Perhaps a solution could be to add a prep=True flag which would move the motors to the start position before staging, here.
Note that in relative scan the same problem happens on the way back, where the detector should be unstaged just AFTER the last acquired point.

I would really appreciate if a discussion can be started on this issue. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions