From 88d8b1691892341b01c4a60ab83ea17c735ebf69 Mon Sep 17 00:00:00 2001 From: x03daop Date: Fri, 27 May 2016 15:11:23 +0200 Subject: [PATCH] Script execution --- script/FermiSurfScan.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 script/FermiSurfScan.py diff --git a/script/FermiSurfScan.py b/script/FermiSurfScan.py new file mode 100644 index 00000000..1deccdf5 --- /dev/null +++ b/script/FermiSurfScan.py @@ -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() + \ No newline at end of file