*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit b5169fa8 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Added time offset from waits also to ADwin AOUT trace (for plotting in lyse)

parent 71419eab
Branches ADwin-waits
No related tags found
1 merge request!6Added: waits with the ADwin, calculate Tweezers occupation from the OrcaQuest mid-shot, reprogram AWG mid-shot
...@@ -206,5 +206,10 @@ def get_aout_trace(h5file, output): ...@@ -206,5 +206,10 @@ def get_aout_trace(h5file, output):
data = f["devices/ADwin/ANALOG_OUT/VALUES"][:] data = f["devices/ADwin/ANALOG_OUT/VALUES"][:]
mask = (data["channel"] == port) mask = (data["channel"] == port)
t = np.round(PROCESSDELAY / CLOCK_T12 * data["n_cycles"][mask], 9) t = np.round(PROCESSDELAY / CLOCK_T12 * data["n_cycles"][mask], 9)
if "data" in f and "waits" in f["data"]:
# There was a wait in the experiment, let's offset the times such that they are accurate
waits = f["data/waits"][:]
for i in range(len(waits)):
t[t > waits["time"][i]] += waits["duration"][i]
values = DAC(data["value"][mask]) values = DAC(data["value"][mask])
return t, values return t, values
\ No newline at end of file
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