Script execution

This commit is contained in:
X11MA
2017-02-15 20:21:28 +01:00
parent 1e9782b13a
commit 17db6ceacc

View File

@@ -10,6 +10,7 @@ OFFSET2 = -9.50 #ID2 offset
FIELD_PRECISION = 0.05 # in Amps
ENERGY_CHANGE_SLEEP = 0.0 # put the Enerrgy settling time if needed
FIELD_CHANGE_SLEEP = 0.0 # put the Field settling time if needed
ACC_TIME = 1.0 # accumulation time
'''
# List of scans. Each scan is defined as: (start,stop, step)
# to make a whole loop two scans are needed: [(B1, B2, BSTEP),(B2,B1,-BSTEP)]
@@ -32,6 +33,11 @@ else:
wait_channel(OTF_DONE, 1, type = 'i')
# setting number of samples to be averaged, which depends on the accumulation time
avg = ACC_TIME * 10
caput("X11MA-ES1-10ADC:AVG",avg)
# Generating a list of mag. fields (setpoints) needed for the loop
setpoints = []
for r in RANGES:
@@ -84,4 +90,4 @@ for B in setpoints:
scan.append ([B, E], [readback1, readback2], [detector1, detector2, detector4, detector6, detector7, tey_norm])
scan.end()
caput("X11MA-ES1-10ADC:AVG",1)