""" 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')