malcolm.modules.ADMerlin.blocks

malcolm.modules.ADMerlin.blocks.merlin_driver_block(mri, prefix)

Hardware block corresponding to PVs used for Merlin detector driver

Parameters
  • mri (str) – Malcolm resource id of the Block

  • prefix (str) – The root PV for the all records

malcolm.modules.ADMerlin.blocks.merlin_runnable_block(mri_prefix, pv_prefix, config_dir, drv_suffix='DET', label='Merlin', readout_time='0.001', frequency_accuracy='50')

Device block corresponding to Merlin + stat + pos + hdf writer.

  • Detector driver should have pv prefix $(pv_prefix):DET

  • Pos should have pv prefix $(pv_prefix):POS

  • Stat should have pv prefix $(pv_prefix):STAT

  • HDF should have pv prefix $(pv_prefix):HDF5

Parameters
  • mri_prefix (str) – Malcolm resource id of the Block and prefix for children

  • pv_prefix (str) – PV prefix for driver and all plugins

  • config_dir (str) – Where to store saved configs

  • drv_suffix (str) – PV suffix for detector driver

  • label (str) – Beamline specific label for the detector

  • readout_time (str) – Readout time of the detector

  • frequency_accuracy (str) – Frequency accuracy of the detector