LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting peaks using Waveform Datatype

I have an application that plots a waveform on a chart, then picks the peaks and valleys from that data and overlays those points as a second and third plot on the waveform graph.  The method fo doing this is common, but now I want to do the same thing using the Waveform datatype in LabVIEW 7.1.1.  The Waveform Peak pick vi outputs the peak information as 2-1D arrays - 1 for locations (index) and one for amplitides.  I have not been able to figure out how to get these tow arrays to overlay the waveform graph since the data type is different (2x1D arrays vs Waveform).  Since the peak array does not have the same number of points as the waveform, I am having trouble figuring out how to get the peak data on the graph.

Can anyone help?

Thank you,
Peter
0 Kudos
Message 1 of 2
(2,789 Views)
Hi Peter
 
You can create a waveform with the y-value set to NaN if you don't want any data to be plotted. So only the indexes where a peak was found will have the amplitude data.
 
Example in 7.1
 
cheers
 
David
0 Kudos
Message 2 of 2
(2,781 Views)