Jump to content
  • 0

Measure time difference between two points (py)


RealPersonIPromise

Question

Hello, 

I am trying to measure the time between a rise and a fall (or vice versa) through python. I am trying to play around with the waveform sdk application and am looking for a way to measure the two spots automatically instead of manually moving the x cursors. I would like to translate this into python.

measureTime.png

Edited by RealPersonIPromise
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @RealPersonIPromise

The AD2 provides only software time but for newer devices AD3, ADP3X50... high precision T0 trigger time is returned by the following function, so the samples will be timed as T0 + sample position / capture rate, or for more accurate value T0 - FDwfAnalogInTriggerPositionStatus + sample index / FDwfAnalogInFrequencyGet

image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...