06-11-2009 01:26 PM
Hello,
I'm using Labview 7.1 and I am having a hard time trying to calculate peak to peak Time value.
I am using the DAQ Assistant to aquire a continous analog signal. I used the example vi "advanced peak detector.vi" to detect the peak values which works great. However, is there a way to find the Time between peaks? I guess what I am trying to do is displaying the difference between the current peak time with previous peak time of a continous signal.
Solved! Go to Solution.
06-11-2009 01:44 PM - edited 06-11-2009 01:49 PM
Yes, use a shift register.
The output of this will be an array of distances between peaks.
06-11-2009 02:53 PM
Hi thanks for your help,
It seems to be kind of working. Except I'm inputting a sine wave with a period of 0.5 to 1 seconds and my answers are above 2 seconds. Another problem I'm experiencing is my answers are disappearing on me. The peak values counts down to zero and then the number is gone. I think it has to do with my inputs. I'm sampling multiple AIs using the DAQ assistant with continuous sampling.
Thanks again!
06-11-2009 10:31 PM
06-17-2009 02:58 PM - edited 06-17-2009 03:01 PM
I've attached my VI.
So whenever I measure the peak position the numeric values are displayed at the Amplitudes and the peak time in Location.
But with the displays the values count down and then disapear. Is the Location in units of seconds? because the location time between the peaks are not correct.
I created a shift register like you said to do.
Also is there a way to record the peaks with my file? the other signals are waveforms DBL, but detecting the peaks have changed to 1D double array.
Thanks for your help!
06-17-2009 03:44 PM
Cory K wrote:Yes, use a shift register.
The output of this will be an array of distances between peaks.
Edit: In my image, I have the values subtracting in the wrong order.
Just switch the wires leading to the subtraction function so the bottom wire is on top and visa versaMessage Edited by Cory K on 06-11-2009 01:49 PM
If you have done a peak detection and found n peaks then you will have n-1 intervals
Take a look at the posting I did 06-15-2009 07:11 PM in this thread
http://forums.ni.com/ni/board/message?board.id=170&message.id=416201#M416201
06-17-2009 04:35 PM
I found out if i increase the buffer, the display counts down slower. So that means the location display is also dependant on the buffer or changing the buffer size changes my time it detects the peaks.
06-18-2009 01:17 PM - edited 06-18-2009 01:18 PM
Just one quick question.
I would like to record the peak values to my file that I'm already measuring with other data. However, the amplitude data are not compatible with other continuous waveform dbl.
I understand its because I don't have peak time syncro with the rest of my recordings. Is there a way to fix this?
Thanks!
06-19-2009 04:10 PM
06-22-2009 10:01 AM - edited 06-22-2009 10:02 AM
But after that, I have an error with my build array (not shown below). It seems like its a bad terminal and it's not compatible with the build array even though the wires connect and show no visual errors.
I also tried using the t0 and dt from the original waveform. Still the same problem with my build array. Am I connecting my build waveform to my build array wrong still?