Script execution
This commit is contained in:
37
script/users/Ju/ManipulatorScan2.py
Normal file
37
script/users/Ju/ManipulatorScan2.py
Normal file
@@ -0,0 +1,37 @@
|
||||
"""
|
||||
Arguments:
|
||||
|
||||
MOTOR (device)
|
||||
SENSORS (list)
|
||||
RANGE (tuple (min, max))
|
||||
STEPS (int or tuple)
|
||||
LATENCY (double)
|
||||
RELATIVE (BOOLEAN)
|
||||
ENDSCAN (BOOLEAN)
|
||||
"""
|
||||
|
||||
MOTOR = dummy
|
||||
RANGE = (0., 1)
|
||||
STEPS = 1.
|
||||
LATENCY = 0.
|
||||
RELATIVE = False
|
||||
ENDSCAN = False
|
||||
SENSORS = (Counts, Scienta.dataMatrix, Scienta.spectrum, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
|
||||
|
||||
#set_preference(Preference.PLOT_TYPES,{'ImageIntegrator':1})
|
||||
adjust_sensors()
|
||||
set_adc_averaging()
|
||||
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
||||
set_exec_pars(compression=True)
|
||||
|
||||
try:
|
||||
ManipulatorY.move(-1.177)
|
||||
ManipulatorZ.move(113.95)
|
||||
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
ManipulatorY.move(-1.351)
|
||||
ManipulatorZ.move(113.73)
|
||||
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
finally:
|
||||
if ENDSCAN:
|
||||
after_scan()
|
||||
|
||||
Reference in New Issue
Block a user