From d94fc1118dadf25e27e8b2848061608c8a0a5d69 Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 6 Sep 2016 10:51:45 +0200 Subject: [PATCH] Startup --- script/XYScan.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 script/XYScan.py 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