17 lines
494 B
Python
17 lines
494 B
Python
set_adc_averaging()
|
|
|
|
ENERGY_LOW = 137.0
|
|
ENERGY_HIGH = 371.0
|
|
SENSORS = [Counts, MachineCurrent, SampleCurrent, RefCurrent, EnergyDistribution, Scienta.getDataMatrix()]
|
|
|
|
try:
|
|
ascan( [dummy,Scienta.getCenterEnergy()],
|
|
SENSORS,
|
|
[-1.0, ENERGY_LOW],
|
|
[1.0, ENERGY_HIGH],
|
|
[1000, 1],
|
|
before_read = before_readout, after_read = after_readout)
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|
|
|