32 lines
792 B
Python
32 lines
792 B
Python
"""
|
|
2D Manipulator scan
|
|
|
|
set manipulator scan parameters below.
|
|
set analyser parameters separately!
|
|
move manipulator to center position before start!
|
|
|
|
"""
|
|
|
|
import math
|
|
|
|
STEPS = (8, 8)
|
|
LATENCY = 0.0
|
|
ENDSCAN = False
|
|
ZIGZAG = False
|
|
|
|
# do not edit below
|
|
MOTORS = (ManipulatorY, ManipulatorZ)
|
|
SENSORS = (Counts,Scienta.dataMatrix, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
|
|
STARTPOS = (-0.50-0.5, 115.20-0.5)
|
|
ENDPOS = (-0.50+0.5, 115.20+0.5)
|
|
RELATIVE = False
|
|
|
|
adjust_sensors()
|
|
set_adc_averaging()
|
|
#set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
|
|
|
try:
|
|
ascan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, zigzag = ZIGZAG, before_read=before_readout, after_read = after_readout)
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan() |