Script execution

This commit is contained in:
gac-x03da
2019-11-22 00:01:19 +01:00
parent 4307126c74
commit 0d3bd3c259
+33
View File
@@ -0,0 +1,33 @@
import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection
REFERENCE_POSITION = {'X':1.2 ,'Y':0.0, 'Z':110.6, 'Theta':-9.1, 'Tilt':0.9, 'Phi':-90.0}
SAMPLE_POSITION = {'X':0.65 ,'Y':0.0, 'Z':115.0, 'Theta':-9.1, 'Tilt':0.9, 'Phi':-90.0}
def move_to_position(pdict):
ManipulatorX.move(pdict['X'])
ManipulatorY.move(pdict['Y'])
ManipulatorZ.move(pdict['Z'])
ManipulatorTheta.move(pdict['Theta'])
ManipulatorTilt.move(pdict['Tilt'])
ManipulatorPhi.move(pdict['Phi'])
#Au600
move_to_position(REFERENCE_POSITION)
rs = RangeSelection(595.0,597.0)
rs.setVars([1., 0.1, 1, 600.]) #Time, Size, Iteration, photon energy
run("XPSSpectrum", {"save_scienta_image":True,
"ranges":[rs, ],
"ENDSCAN":False,
"pass_energy":20})
#In600
move_to_position(SAMPLE_POSITION)
rs = RangeSelection(140.0,153.0)
rs.setVars([1., 0.1, 1, 600.]) #Time, Size, Iteration, photon energy
run("XPSSpectrum", {"save_scienta_image":True,
"ranges":[rs, ],
"ENDSCAN":False,
"pass_energy":20})