I am trying to assign UTC timestamps to the oscilloscope waveform .
I do the following steps:
- Query timestamp and waveform using the following commands (connecting to the scope using pyvisa and a Jupyter Notebook
# Collect timestamp and data using "curve?"
center_time, curve = dt.datetime.now().timestamp(), scope1.query('curve?')
2. I take this center_time
to be the timestamp at the middle of the waveform.
3. Then, I use the x-increment value, which is the step size in seconds for the horizontal points, and assign decreasing and increasing UTC timestamps for the waveform data to the left of and right of the center time point.
Does it make sense to do it this way? I think this is actually missing some detail regarding the trigger point (which is set at the center of the waveform at the moment).