From 1ac15d7edb2b5590e559b067879b2975be9e8caf Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 27 Aug 2021 15:51:26 +0200 Subject: [PATCH] some more over-night looping --- overnight.py | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/overnight.py b/overnight.py index 32e5137..074dc90 100644 --- a/overnight.py +++ b/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) + + + + +