Skip to content

Commit

Permalink
Merge branch 'merlin_feature_addition' into 'master'
Browse files Browse the repository at this point in the history
readout time and frequency accuracy additions

See merge request controls/python3/pymalcolm!2
  • Loading branch information
tomtrafford committed Feb 26, 2024
2 parents a9fe4cf + a1d2ae3 commit 7f50f03
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions malcolm/modules/ADMerlin/blocks/merlin_runnable_block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,26 @@
name: config_dir
description: Where to store saved configs

- builtin.parameters.string:
name: drv_suffix
description: PV suffix for detector driver
default: DET

- builtin.parameters.string:
name: label
description: Beamline specific label for the detector
default: Merlin

- builtin.parameters.string:
name: readout_time
description: Readout time of the detector
default: 1e-3

- builtin.parameters.string:
name: frequency_accuracy
description: Frequency accuracy of the detector
default: 50

- builtin.defines.docstring:
value: |
Device block corresponding to Merlin + stat + pos + hdf writer.
Expand All @@ -35,15 +50,16 @@

- ADMerlin.blocks.merlin_driver_block:
mri: $(mri_prefix):DRV
prefix: $(pv_prefix):DET
prefix: $(pv_prefix):$(drv_suffix)

- ADCore.parts.DetectorDriverPart:
name: DRV
mri: $(mri_prefix):DRV

- scanning.parts.ExposureDeadtimePart:
name: DEADTIME
readout_time: 1e-3
readout_time: $(readout_time)
frequency_accuracy: $(frequency_accuracy)

- ADCore.blocks.stats_plugin_block:
mri: $(mri_prefix):STAT
Expand Down

0 comments on commit 7f50f03

Please sign in to comment.