""" Arguments: MOTOR (device) SENSORS (list) RANGE (tuple (min, max)) STEPS (int or tuple) LATENCY (double) RELATIVE (BOOLEAN) """ STEPS = (0.5) LATENCY = 0.0 ENDSCAN = False ZIGZAG = False MOTORS = (ManipulatorTheta) SENSORS = (Counts,Scienta.dataMatrix, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) STARTPOS = (-11.0) ENDPOS = (+20.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()