This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

How to Calculate Time Difference Between Two Peaks in LabVIEW?

Updated May 1, 2025

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.