Files
x03da/script/users/EmpaMarco.py
2017-06-01 13:55:06 +02:00

25 lines
717 B
Python

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