some more over-night looping
This commit is contained in:
119
overnight.py
119
overnight.py
@ -217,3 +217,122 @@ from time import sleep
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#from epics import PV
|
||||||
|
#from time import sleep
|
||||||
|
|
||||||
|
|
||||||
|
#SATFE10-OPSH066:REQUEST
|
||||||
|
|
||||||
|
#STATE 0: close
|
||||||
|
#STATE 1: open
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#def overnight():
|
||||||
|
# shutter = PV("SATOP21-OPSH138:REQUEST")
|
||||||
|
|
||||||
|
# print("open shutter")
|
||||||
|
# shutter.put(1)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
# base = "TT_overnight"
|
||||||
|
|
||||||
|
# x0 = 22.24
|
||||||
|
# start = x0 - 0.23
|
||||||
|
# stop = x0 + 0.23
|
||||||
|
# step = 0.01
|
||||||
|
|
||||||
|
# n_pulses = 2 * 2000
|
||||||
|
|
||||||
|
# for i in range(1000):
|
||||||
|
# print(i, "sig")
|
||||||
|
# scan.scan1D(exp_delay, start, stop, step, n_pulses, f"{base}_sig_{i:04}", return_to_initial_values=True)
|
||||||
|
|
||||||
|
# print("close shutter")
|
||||||
|
# shutter.put(0)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
# print(i, "bkg")
|
||||||
|
# daq.acquire(f"{base}_bkg_{i:04}", n_pulses=n_pulses)
|
||||||
|
|
||||||
|
# print("open shutter")
|
||||||
|
# shutter.put(1)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#def overnight():
|
||||||
|
# shutter = PV("SATOP21-OPSH138:REQUEST")
|
||||||
|
|
||||||
|
# print("open shutter")
|
||||||
|
# shutter.put(1)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
# base = "TT_overnight2"
|
||||||
|
|
||||||
|
# x0 = 21.36
|
||||||
|
# start = x0 - 0.225
|
||||||
|
# stop = x0 + 0.225
|
||||||
|
# step = 0.003
|
||||||
|
|
||||||
|
# n_pulses = 2 * 1000
|
||||||
|
|
||||||
|
# for i in range(1000):
|
||||||
|
# print(i, "sig")
|
||||||
|
# scan.scan1D(exp_delay, start, stop, step, n_pulses, f"{base}_sig_{i:04}", return_to_initial_values=True)
|
||||||
|
|
||||||
|
# print("close shutter")
|
||||||
|
# shutter.put(0)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
# print(i, "bkg")
|
||||||
|
# daq.acquire(f"{base}_bkg_{i:04}", n_pulses=n_pulses)
|
||||||
|
|
||||||
|
# print("open shutter")
|
||||||
|
# shutter.put(1)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#def overnight():
|
||||||
|
# shutter = PV("SATOP21-OPSH138:REQUEST")
|
||||||
|
|
||||||
|
# print("open shutter")
|
||||||
|
# shutter.put(1)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
# base = "TT_overnight3"
|
||||||
|
|
||||||
|
# x0 = 16.92
|
||||||
|
# start = x0 - 0.15
|
||||||
|
# stop = x0 + 0.15
|
||||||
|
# step = 0.003
|
||||||
|
|
||||||
|
# n_pulses = 4 * 500
|
||||||
|
|
||||||
|
# for i in range(1000):
|
||||||
|
# print(i, "sig")
|
||||||
|
# scan.scan1D(exp_delay, start, stop, step, n_pulses, f"{base}_sig_{i:04}", return_to_initial_values=True)
|
||||||
|
|
||||||
|
# print("close shutter")
|
||||||
|
# shutter.put(0)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
# print(i, "bkg")
|
||||||
|
# daq.acquire(f"{base}_bkg_{i:04}", n_pulses=n_pulses)
|
||||||
|
|
||||||
|
# print("open shutter")
|
||||||
|
# shutter.put(1)
|
||||||
|
# sleep(3)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user