""" sample positioning scan - EXPERIMENTAL set manipulator scan parameters below. set analyser parameters separately! move manipulator to center position before start! """ import math # list of (start, stop, step) tuples REGIONS = [(-3.5, -2.5, 0.025), (2.2, 3.2, 0.025)] RELATIVE = False LATENCY = 0.0 ENDSCAN = False ZIGZAG = True MOTORS = (ManipulatorY) SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) #SENSORS = (Counts, Scienta.spectrum, Scienta.dataMatrix, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) adjust_sensors() set_adc_averaging() #set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1}) try: rscan(MOTORS, SENSORS, REGIONS, latency = LATENCY, relative = RELATIVE, passes = 1, zigzag = ZIGZAG, before_read = before_readout, after_read = after_readout, title = "my scan") finally: if ENDSCAN: after_scan()