From 2af3bfeb5d0c6ee10537599ab27e98a9566acf23 Mon Sep 17 00:00:00 2001 From: x03daop Date: Wed, 3 Aug 2016 11:18:12 +0200 Subject: [PATCH] Script execution --- script/RefocusYRotScan.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/RefocusYRotScan.py b/script/RefocusYRotScan.py index c3f77bdb..e8981118 100644 --- a/script/RefocusYRotScan.py +++ b/script/RefocusYRotScan.py @@ -8,13 +8,13 @@ set analyser parameters separately! import math # adjust the following parameters -DISTANCE = 0.8 -STEPS = 40 +DISTANCE = 0.2 +STEPS = 20 LATENCY = 0.5 ENDSCAN = True -MOTOR = (RefocusYRot) -SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) +global MOTORS = (RefocusYRot) +global SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) STARTPOS = (-DISTANCE / 2.0) ENDPOS = (DISTANCE / 2.0) RELATIVE = True @@ -23,7 +23,7 @@ adjust_sensors() set_adc_averaging() try: - lscan(MOTOR, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout) + lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout) finally: if ENDSCAN: after_scan()