Files
x03da/script/EmpaMarco.py
2016-08-16 12:00:27 +02:00

22 lines
653 B
Python

set_adc_averaging()
ENERGY_LOW = 136.5
ENERGY_HIGH = 351.0
SETTLING_TIME = 0.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_HIGH],
[0.001 * STEPS, ENERGY_LOW],
[STEPS, 1],
latency = SETTLING_TIME,
before_read = before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()