Script execution
This commit is contained in:
31
script/ManipulatorYZScan.py
Normal file
31
script/ManipulatorYZScan.py
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user