25 lines
717 B
Python
25 lines
717 B
Python
set_adc_averaging()
|
|
|
|
ENERGY_LOW = 136.0
|
|
ENERGY_HIGH = 350.5
|
|
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()
|
|
|