diff --git a/script/XYScan.py b/script/XYScan.py new file mode 100644 index 00000000..5f7edbc4 --- /dev/null +++ b/script/XYScan.py @@ -0,0 +1,19 @@ +SENSORS = [Counts, MachineCurrent, SampleCurrent, RefCurrent, EnergyDistribution, Scienta.getDataMatrix()] +X_RANGE = [0.0, 1.0] +Y_RANGE = [0.0, 1.0] +STEPS =[10, 10] +LATENCY = 0.0 +ZIGZAG = False +ENDSCAN = False + + + +adjust_sensors() +set_adc_averaging() +set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1}) + +try: + ascan((ManipulatorX, ManipulatorY), SENSORS, (X_RANGE[0], Y_RANGE[0]), (X_RANGE[1], Y_RANGE[1]), STEPS, LATENCY, relative = False, zigzag = ZIGZAG, before_read=before_readout, after_read = after_readout) +finally: + if ENDSCAN: + after_scan() \ No newline at end of file