From f3af7959b7a4fcec1d3cae2fcca57cf552af6ca6 Mon Sep 17 00:00:00 2001 From: Leolab Cavity CAD PC <quantuminfo.leolab@gmail.com> Date: Wed, 5 Feb 2025 13:02:07 +0100 Subject: [PATCH] Fastcomtec: 600s Sweeps work with these wait times, don't know if we can wait shorter --- FastComtecMCS8A/blacs_workers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastComtecMCS8A/blacs_workers.py b/FastComtecMCS8A/blacs_workers.py index e8f5a77..dac0f3d 100644 --- a/FastComtecMCS8A/blacs_workers.py +++ b/FastComtecMCS8A/blacs_workers.py @@ -59,7 +59,7 @@ class MCS8AWorker(Worker): # TODO: How to handle parameters (start new measurment when they changed, or treat parameters statically) with h5py.File(h5_file,'r') as f: stop_time = f["devices/" + f["connection table"].attrs["master_pseudoclock"]].attrs["stop_time"] - if getattr(self.device.get_acq_status(),"started") != 1 or time.perf_counter()-getattr(self,"start_time",-self.maxduration)>self.maxduration-stop_time-0.1: + if getattr(self.device.get_acq_status(),"started") != 1 or time.perf_counter()-getattr(self,"start_time",-self.maxduration)>self.maxduration-stop_time-0.5: while getattr(self.device.get_acq_status(),"started") == 1: # If the current measurement doesn't have enought time left for this shot, wait until measurment ends. time.sleep(0.1) @@ -74,7 +74,7 @@ class MCS8AWorker(Worker): # self.device.erase_measruement() # Don't erase because this takes super long for some reason self.device.start_measurement() self.start_time = time.perf_counter() - time.sleep(0.1) # some buffer time to make sure the measurement already started for sure + time.sleep(1) # some buffer time to make sure the measurement already started for sure # TODO: What's the minimum time to wait here? # Save where to find the measurement data (which file and within file) -- GitLab