Script execution

This commit is contained in:
gac-x11ma
2017-12-14 01:00:53 +01:00
parent d52a06df14
commit df999b2700
+6 -2
View File
@@ -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)