How to Calculate Time Difference Between Two Peaks in LabVIEW?

Updated Apr 21, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am using the NI DAQ to acquire a continuous analog signal. What I am trying to do is displaying the difference between the current peak time with the previous peak time of a continuous signal. Is there a way to find the time difference between peaks? 

Solution

You can definitely do what you want with the Peak Detector VI and implementation of a shift register.
Below is a rough example:
The output of this will be an array of distances between peaks.