36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
"""
|
|
sample positioning scan - EXPERIMENTAL
|
|
|
|
set manipulator scan parameters below.
|
|
set analyser parameters separately!
|
|
move manipulator to center position before start!
|
|
|
|
"""
|
|
|
|
import math
|
|
|
|
# list of (start, stop, step) tuples
|
|
MOTORS = (ManipulatorY)
|
|
REGIONS = [(-3.7, -2.7, 0.025), (2.0, 3.0, 0.025)]
|
|
|
|
#MOTORS = (ManipulatorZ)
|
|
#REGIONS = [(111.5, 112.1, 0.025), (116.8, 117.4, 0.025)]
|
|
|
|
RELATIVE = False
|
|
LATENCY = 0.0
|
|
ENDSCAN = False
|
|
ZIGZAG = True
|
|
|
|
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
|
|
#SENSORS = (Counts, Scienta.spectrum, Scienta.dataMatrix, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
|
|
|
|
adjust_sensors()
|
|
set_adc_averaging()
|
|
#set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
|
|
|
try:
|
|
rscan(MOTORS, SENSORS, REGIONS, latency = LATENCY, relative = RELATIVE, passes = 1, zigzag = ZIGZAG, before_read = before_readout, after_read = after_readout, title = "my scan")
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|
|
|