Files
x03da/script/users/Granas/ManipulatorScan_base.py
gac-x03da 77d719012e Startup
2018-10-24 15:29:28 +02:00

34 lines
681 B
Python

"""
changed by Christoph Setz
Arguments:
MOTOR (device)
SENSORS (list)
RANGE (tuple (min, max))
STEPS (int or tuple)
LATENCY (double)
RELATIVE (BOOLEAN)
"""
#set_preference(Preference.PLOT_TYPES,{'ImageIntegrator':1})
adjust_sensors()
set_adc_averaging()
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
#MOTOR = dummy
#RANGE = (0,10)
#STEPS = 10 # set before
"""
MOTOR = ManipulatorZ
RANGE = (113,120.5)
RELATIVE = False
"""
try:
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()
time.sleep(10)