Files
x03da/script/optics/MonoHGRScan.py
2022-02-03 17:58:53 +01:00

19 lines
538 B
Python

"""
monochromator HGR scan with Scienta acquisition
"""
from ch.psi.pshell.epics import Motor
motor = Motor('MonoHGR', 'X03DA-PGM:HGR')
motor.initialize()
POSITIONERS = ('ca://X03DA-PGM:HGR')
POSITIONERS = (motor)
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')