11-29-2018 07:12 AM
Hi..
I used the same WA multiscale peak dector to capture peaks of a signal coming from DAQ.
The location values from WA peak detector as some number . So I used
Time Locations[i] = t0 + dt*Locations[i]
I took dt as 0.001 as my sampling frequecy is 1 kHz. And t0 as zero
But I am not getting the actually peak time.
Can you help me to use the above formula as what to be taken for t0 and dt.
Values of locations are
3626338060.32412100
3626338061.08412123
3626338062.44912100
The actual time at which peaks appears are
1.204
1.964
3.329
Thanks
Sukesh
11-29-2018 02:33 PM
11-29-2018 08:03 PM
Hi GredW
Thanks for the reply.
The values that you have got after timestamp process seems to be not same as the values that I got in actual peak time.
I could get the relative and absolute time values when I change the display property of DBL block. Which is the same values that you showed.
The actual peak values that found are taken from exporting the data to xls sheet from peak plot display block. There I could see actual peak values. But those values are not matching with even with relative time stamp.
Pls let me how to get values with time values as I get it in peak plot.
Thanks
Sukesh
11-29-2018 10:44 PM
Please attach the following:
Bob Schor
11-29-2018 11:20 PM
Hi Bod
vi file is attached.
also the xls file containing the absolute times of peak are also attached. I expect the values to be in that of xls file but the conversion that i have used as per time= t0+dt*location doesnt shows the result.
thanks
sukesh
11-30-2018 01:36 AM
11-30-2018 02:39 AM
Hi GredW
I changed dt value inside WA PEAK vi module. Still not finding similarity in the values of location and xls sheet exported peak times from peak plot.
We can see time values in the exported files of xls sheet in ternt of seconds. But I am not getting those values from WA multiMulti peak detector in the "location field". Kinldy let me what went wrong here.
Thanks
Sukesh
11-30-2018 02:46 AM
Hi Sukesh,
But I am not getting those values from WA multiMulti peak detector in the "location field". Kinldy let me what went wrong here.
There's nothing wrong. You just have to note the term "+t0" in the equation for those locations!
t0 is the number of seconds since epoch of the timestamp (as described in the LabVIEW help). That's why you get numbers in the range of 3.6E+9!
As written before: to get relative time you need to subtract two timestamps…
11-30-2018 03:05 AM
Hi Gredw
Thanks a Lot . I got it now and did the same modification in the code. I was not able to locate t0 values.
Now both xls and times from locations are same ...
Thanks
Sukesh
11-30-2018 03:39 AM