Startup
This commit is contained in:
19
script/XYScan.py
Normal file
19
script/XYScan.py
Normal file
@@ -0,0 +1,19 @@
|
||||
SENSORS = [Counts, MachineCurrent, SampleCurrent, RefCurrent, EnergyDistribution, Scienta.getDataMatrix()]
|
||||
X_RANGE = [0.0, 1.0]
|
||||
Y_RANGE = [0.0, 1.0]
|
||||
STEPS =[10, 10]
|
||||
LATENCY = 0.0
|
||||
ZIGZAG = False
|
||||
ENDSCAN = False
|
||||
|
||||
|
||||
|
||||
adjust_sensors()
|
||||
set_adc_averaging()
|
||||
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
||||
|
||||
try:
|
||||
ascan((ManipulatorX, ManipulatorY), SENSORS, (X_RANGE[0], Y_RANGE[0]), (X_RANGE[1], Y_RANGE[1]), STEPS, LATENCY, relative = False, zigzag = ZIGZAG, before_read=before_readout, after_read = after_readout)
|
||||
finally:
|
||||
if ENDSCAN:
|
||||
after_scan()
|
||||
Reference in New Issue
Block a user