Files
x03da/script/users/EmpaMarco.py
2017-05-02 08:54:48 +02:00

24 lines
689 B
Python

set_adc_averaging()
ENERGY_LOW = 136.2
ENERGY_HIGH = 350.0
SETTLING_TIME = 0.0
STEPS = 1000
SENSORS = [Counts, MachineCurrent, SampleCurrent, RefCurrent, EnergyDistribution, Scienta.getDataMatrix()]
ENDSCAN = False
#dummy.initialize()
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()