Script execution
This commit is contained in:
@@ -51,7 +51,7 @@ set_preference(Preference.PLOT_TYPES, {'tey_norm':1})
|
||||
#scan = ManualScan(['field', 'Energy'], ['TEY', 'I0', 'polarization', 'temperature', 'RingCurrent', 'tey_norm'] , [min(setpoints), min(ENERGIES)], [max(setpoints), max(ENERGIES)], [len(setpoints)-1, len(ENERGIES)-1])
|
||||
scan = ManualScan(['field', 'Energy'], ['I0', 'TEY', 'TFY', 'polarization', 'temperature', 'RingCurrent', 'tey_norm','tfy_norm'] , [min(setpoints), min(ENERGIES)], [max(setpoints), max(ENERGIES)], [len(setpoints)-1, len(ENERGIES)-1])
|
||||
scan.start()
|
||||
|
||||
os.chdir("/sls/X11MA/data/X11MA/beamtime_december/")
|
||||
# Main loop
|
||||
for B in setpoints:
|
||||
print "Setting field = ", B
|
||||
@@ -106,8 +106,12 @@ for B in setpoints:
|
||||
|
||||
#scan.append ([B, E], [readback1, readback2], [detector1, detector2, detector4, detector6, detector7, tey_norm])
|
||||
scan.append ([B, E], [readback2], [detector1, detector2, detector4, tey_norm])
|
||||
|
||||
filename=open("data1.txt","a")
|
||||
filename.write("%f %e %e %e %e \n" %(B,E,detector1,detector2,tey_norm]
|
||||
|
||||
scan.end()
|
||||
filename.close()
|
||||
|
||||
caput("X11MA-ES1-10ADC:AVG",1)
|
||||
caput("X11MA-XMCD:I-SETraw",0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user