ophyd_async.epics.adcore.set_exposure_time_and_acquire_period_if_supplied#

async ophyd_async.epics.adcore.set_exposure_time_and_acquire_period_if_supplied(controller: DetectorControl, driver: ADBaseIO, exposure: float | None = None, timeout: float = 10.0) None[source]#

Sets the exposure time if it is not None and the acquire period to the exposure time plus the deadtime. This is expected behavior for most AreaDetectors, but some may require more specialized handling.

Parameters:
  • controller – Controller that can supply a deadtime.

  • driver – The driver to start acquiring. Must subclass ADBaseIO.

  • exposure – Desired exposure time, this is a noop if it is None.

  • timeout – How long to wait for the exposure time and acquire period to be set.