Files
x03da/script/EmpaMarco.py
x03daop ec730161e3
2016-08-10 14:48:53 +02:00

22 lines
653 B
Python

set_adc_averaging()
ENERGY_LOW = 137.0
ENERGY_HIGH = 371.0
SETTLING_TIME = 1.0
STEPS = 1000
SENSORS = [Counts, MachineCurrent, SampleCurrent, RefCurrent, EnergyDistribution, Scienta.getDataMatrix()]
setup_plotting(line_plots = (Counts, MachineCurrent, SampleCurrent, RefCurrent,))
try:
ascan( [dummy,Scienta.getCenterEnergy()],
SENSORS,
[0.0, ENERGY_LOW],
[0.001 * STEPS, ENERGY_HIGH],
[STEPS, 1],
latency = SETTLING_TIME,
before_read = before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()