Hi Adrian,
I would have expected to see the same issue in LabVIEW though if that was the case.
Might be worth a look anyway. You’ll need to update to the latest development version of labscript devices (it’s not on PyPI/conda yet), provide a constant frequency reference clock to the NI card (it really should be derived from whatever external clock reference is used for your pseudoclock or else you may just trade one drift for another), and add some extra keyword arguments to your connection table/experiment scripts (updated docs for this feature are here:
https://docs.labscriptsuite.org/projects/labscript-devices/en/latest/devices/ni_daqs/#ai-timing-skew )
If that doesn’t solve the issue, could you attach an example HDF5 file that contains the acquired data, with an explanation of what you see (with times) vs. what you expect to see? It doesn’t have to be real if you need to avoid sharing sensitive research. Any minimal example that includes the acquired traces will do as long as you can detail how the acquired data differs from what you expected.
Cheers,
Phil