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