Script execution
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user