LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on converting peak locations to time

I am trying to get the time associated with each peak for my signal.  I am using the peak detection VI.  I checked out the online ref. at http://zone.ni.com/devzone/cda/tut/p/id/3770  but I dont understand why the reference indicates t0 is a dbl.  In my VI it's of type timestamp and in order to do the "add" operation it has to be dbl?  I am new to labview and any help would be greatly appreciated.
 
I've attached my VI
 
Thanks,
Chris
0 Kudos
Message 1 of 4
(2,852 Views)
Timestamps are inherently numeric values.  You can add a timestamp to a double.  You can also convert a double to a timestamp using the "To Time Stamp" function on the numeric pallette.
0 Kudos
Message 2 of 4
(2,846 Views)

Thanks, for the information, but I'm really trying to translate the location data to time.  That is, instead of getting the location of the index corresponding to the peak I would like to know the time that each peak occurred.

I followed the directions in the tutorial, but my Vi just appends the location data for each peak to "7"  So, if the location data is 22.33, 34.6, 38 the the time = 7:22.33, 7:34:6 and 7:38

 

I would like to get the relative time for each peak.

 

Thanks,

Chris.

0 Kudos
Message 3 of 4
(2,833 Views)
This may be ignorance on my part, but wouldn't the relative time be dt * indice of the peak
0 Kudos
Message 4 of 4
(2,830 Views)