Skip to content
Snippets Groups Projects
Commit 1b5ca00d authored by Sander Snoo's avatar Sander Snoo
Browse files

Log warning when sequence run duration > 3 s

parent 7d58f183
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,8 @@ class M3202A_Uploader:
if channels is None:
channels = list(job.n_acq_samples.keys())
sample_rate = job.acquisition_conf.sample_rate
if job.acquisition.f_sweep is not None:
raise Exception("In-sequence resonator frequency sweep not supported for Keysight")
for channel_name, t_measure in job.t_measure.items():
if channel_name not in channels:
continue
......@@ -454,6 +456,9 @@ class M3202A_Uploader:
schedule_params = self._get_hvi_params(job)
job.hw_schedule.set_configuration(schedule_params, job.n_waveforms)
n_rep = job.n_rep if job.n_rep else 1
run_duration = n_rep * job.playback_time * 1e-9 + 0.1
if run_duration > 3.0:
logger.warning(f"Expected duration for point: {run_duration:.1f} s")
job.hw_schedule.start(job.playback_time, n_rep, schedule_params)
if release_job:
......
......@@ -331,6 +331,9 @@ class QsUploader:
sample_rate = None
else:
sample_rate = job.acquisition_conf.sample_rate
if job.acquisition.f_sweep is not None:
raise Exception("In sequence resonator frequency sweep not supported for Keysight")
for channel_name, t_measure in job.t_measure.items():
if channel_name not in channels:
continue
......@@ -620,6 +623,9 @@ class QsUploader:
schedule_params = self._get_hvi_params(job)
job.hw_schedule.set_configuration(schedule_params, job.n_waveforms)
n_rep = job.n_rep if job.n_rep else 1
run_duration = n_rep * job.playback_time * 1e-9 + 0.1
if run_duration > 3.0:
logger.warning(f"Expected duration for point: {run_duration:.1f} s")
job.hw_schedule.start(job.playback_time, n_rep, schedule_params)
if release_job:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment