apstools
apstools copied to clipboard
Generalize how to set detector count time
relates to #23 and to https://github.com/NSLS-II/bluesky/issues/997
Count time is implemented differently, based on the detector type (and conceivable other hardware-specific features). Here's the ones I know about now:
-
SynSignal
:bps.mv(det.exposure_time, time))
-
EpicsScaler
:bps.mv(det.preset_time, time)
-
ScalerCH
:bps.mv(det.preset_time, time)
-
areadetector.DetectorBase
:bps.mv(det.cam.acquire_time, time)
Supporting negative time to count against a monitor detector is only supported by EpicsScaler
and ScalerCH
in the underlying EPICS record support. That may have to drop from this feature request.