Script execution

This commit is contained in:
x03daop
2016-05-27 15:11:23 +02:00
parent 2c8e52cb95
commit 88d8b16918

33
script/FermiSurfScan.py Normal file
View File

@@ -0,0 +1,33 @@
"""
Arguments:
MOTOR (device)
SENSORS (list)
RANGE (tuple (min, max))
STEPS (int or tuple)
LATENCY (double)
RELATIVE (BOOLEAN)
"""
STEPS = (2.0)
LATENCY = 0.0
ENDSCAN = False
ZIGZAG = False
MOTORS = (ManipulatorTheta)
SENSORS = (ScientaImage, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
STARTPOS = (-12.0)
ENDPOS = (+15.0)
RELATIVE = False
#set_preference(Preference.PLOT_TYPES,{'ImageIntegrator':1})
adjust_sensors()
set_adc_averaging()
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
try:
lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()