some more overnight loops

This commit is contained in:
2022-11-08 20:28:36 +01:00
parent 72b7f87899
commit b7f1a8029d

View File

@ -1224,3 +1224,65 @@ def smooth_attenuator():
def fire():
cycle = PV("SATUN14-MBND100:CYCLE")
n_acqs = 30
n_pulses = 6000
# currents = [19.0, 20.6, 22.1, 23.5, 26.1, 27.3, 28.4, 29.5, 30.6, 31.6, 35.4, 38.9, 43.5, 50.0]
currents = [10.2, 19, 22, 25, 27.3, 29.5, 35.4, 43.5, 66.7, 50.3]
# for E in [660,640]:
# print("energy:", E)
# t = und1.set(E)
# cycle.put(1, wait=True)
# sleep(250)
# t.wait()
for I in currents:
print("current:", I)
chic_delay.set(I).wait()
for i in range(n_acqs):
print("rep:", i)
fname = f"overnight3_{I}A"
daq.acquire(fname, n_pulses=n_pulses*2).wait()
def fire2():
#cycle = PV("SATUN14-MBND100:CYCLE")
n_acqs = 30
n_pulses = 6000
# currents = [19.0, 20.6, 22.1, 23.5, 26.1, 27.3, 28.4, 29.5, 30.6, 31.6, 35.4, 38.9, 43.5, 50.0]
currents = [22, 25, 27.3, 29.5, 35.4, 43.5, 50.3, 66.7]
for E in [640]:
print("energy:", E)
t = und1.set(E)
#cycle.put(1, wait=True)
#sleep(250)
#t.wait()
for I in currents:
print("current:", I)
chic_delay.set(I).wait()
for i in range(n_acqs):
print("rep:", i)
fname = f"overnight2_{E}eV_{I}A"
daq.acquire(fname, n_pulses=n_pulses*2).wait()