Script execution

This commit is contained in:
gac-x11ma
2017-12-21 02:54:13 +01:00
parent 9a9e16ee1a
commit 81f1046cc5

View File

@@ -0,0 +1,48 @@
caput("X11MA-ES1-10ADC:AVG",1) # acquisition time otf to 1
E1 = 1420
E2 = 1500
TIME = 4 #min
DELAY = 2.0 #s
#PREFIX = 'Data'
OFFSETp = -11
OFFSETm = -12
PLOT_TYPE = 1
FIELD_CHANGE_SLEEP = 10
for B in [-10, 10]:
if B > 0:
caput("X11MA-XMCD:I-SETraw",10) #SET FIELD TO 10 AMPS
time.sleep( FIELD_CHANGE_SLEEP ) # Settling time
if B < 0:
caput("X11MA-XMCD:I-SETraw",-10) # SET FIELD TO -10 AMPS
time.sleep( FIELD_CHANGE_SLEEP ) # Settling time
caput("X11MA-XMCD:I-SETraw",B) # SET FIELD TO b
time.sleep( FIELD_CHANGE_SLEEP ) # Settling time
RUNTYPE = "+"
ROUNDS = 1
run("Krieger/EnergyScanID2only")
RUNTYPE = "-"
ROUNDS = 1
run("Krieger/EnergyScanID2only")
RUNTYPE = "-"
ROUNDS = 1
run("Krieger/EnergyScanID2only")
RUNTYPE = "+"
ROUNDS = 1
run("Krieger/EnergyScanID2only")
RUNTYPE = "+"
ROUNDS = 1
run("Krieger/EnergyScanID2only")
RUNTYPE = "-"
ROUNDS = 1
run("Krieger/EnergyScanID2only")