From 1e577926d18f065538d54255df6a0b1893885cd8 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Thu, 3 Feb 2022 17:29:29 +0100 Subject: [PATCH] Script execution --- script/optics/MonoHGRScan.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 script/optics/MonoHGRScan.py diff --git a/script/optics/MonoHGRScan.py b/script/optics/MonoHGRScan.py new file mode 100644 index 00000000..c4f5000b --- /dev/null +++ b/script/optics/MonoHGRScan.py @@ -0,0 +1,13 @@ +""" +monochromator HGR scan with Scienta acquisition + +""" + +POSITIONERS = ('ca://X03DA-PGM:HGR') +SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, Scienta.dataMatrix) +LATENCY = 5.0 + +adjust_sensors() +set_adc_averaging() +set_exec_pars(compression=True) +lscan(POSITIONERS, SENSORS, [53.0], [93.0], [5.0], latency=LATENCY, before_read=before_readout, after_read=after_readout, name='HGR')