Script execution

This commit is contained in:
x03daop
2016-08-10 14:43:43 +02:00
parent 06524f03e2
commit 99db190872

View File

@@ -2,14 +2,19 @@ set_adc_averaging()
ENERGY_LOW = 137.0
ENERGY_HIGH = 371.0
SETTLING_TIME = 1.0
STEPS = 1000
SENSORS = [Counts, MachineCurrent, SampleCurrent, RefCurrent, EnergyDistribution, Scienta.getDataMatrix()]
try:
ascan( [dummy,Scienta.getCenterEnergy()],
SENSORS,
[-1.0, ENERGY_LOW],
[0.0, ENERGY_LOW],
[1.0, ENERGY_HIGH],
[1000, 1],
[1000, 1],
latency = SETTLING_TIME
before_read = before_readout, after_read = after_readout)
finally:
if ENDSCAN: