Script execution

This commit is contained in:
gac-x11ma
2017-12-21 05:12:43 +01:00
parent baddb60462
commit 04c5ccdac8
+45 -21
View File
@@ -1,31 +1,55 @@
caput("X11MA-ES1-10ADC:AVG",1) # acquisition time otf to 1
E1 = 425
E2 = 475
TIME = 3 #min
DELAY = 2.0 #s
E1 = 625
E2 = 875
TIME = 11 #min
DELAY = 0.10 #s
#PREFIX = 'Data'
OFFSETp = -5.5
OFFSETm = -6.5
OFFSETp = -8
OFFSETm = -9
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
#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")
ROUNDS = 1
RUNTYPE = "-"
ROUNDS = 1
run("Krieger/EnergyScanID2only")
caput("X11MA-XMCD:I-SETraw",10) #SET FIELD TO 10 AMPS
RUNTYPE = "+"
run("Krieger/EnergyScanID2only")
RUNTYPE = "-"
run("Krieger/EnergyScanID2only")
caput("X11MA-XMCD:I-SETraw",-10) #SET FIELD TO 10 AMPS
RUNTYPE = "-"
run("Krieger/EnergyScanID2only")
RUNTYPE = "+"
run("Krieger/EnergyScanID2only")
RUNTYPE = "+"
run("Krieger/EnergyScanID2only")
RUNTYPE = "-"
run("Krieger/EnergyScanID2only")
caput("X11MA-XMCD:I-SETraw",+10) #SET FIELD TO 10 AMPS
RUNTYPE = "-"
run("Krieger/EnergyScanID2only")
RUNTYPE = "+"
run("Krieger/EnergyScanID2only")