From aba36932938659ef46bdf93f972ce0a0a4886c18 Mon Sep 17 00:00:00 2001 From: x03daop Date: Wed, 25 May 2016 14:47:25 +0200 Subject: [PATCH] Script execution --- script/ManipulatorYZScan.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 script/ManipulatorYZScan.py diff --git a/script/ManipulatorYZScan.py b/script/ManipulatorYZScan.py new file mode 100644 index 00000000..de4c1dea --- /dev/null +++ b/script/ManipulatorYZScan.py @@ -0,0 +1,31 @@ +""" +2D Manipulator scan + +set manipulator scan parameters below. +set analyser parameters separately! +move manipulator to center position before start! + +""" + +import math + +STEPS = (11, 11) +LATENCY = 0.1 +ENDSCAN = True +ZIGZAG = True + +# do not edit below +MOTORS = (ManipulatorY, ManipulatorZ) +SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) +STARTPOS = (-0.25, 0.25) +ENDPOS = (-0.25, 0.25) +RELATIVE = True + +adjust_sensors() +set_adc_averaging() + +try: + ascan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, zigzag = ZIGZAG, before_read=before_readout, after_read = after_readout) +finally: + if ENDSCAN: + after_scan() \ No newline at end of file