This commit is contained in:
x03daop
2016-09-06 10:51:45 +02:00
parent b4fd307b9d
commit d94fc1118d

19
script/XYScan.py Normal file
View 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()