LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dividing a waveform by peak values

Hi everyone... I am a new student to LabView (and computer programming) and need some help dividing a waveform. I am trying to divide a waveform graph into 3 sections going from peak to peak. So far I've figured out how to determine peaks and how to segment the graph into 3 sections... I just have no clue how to get the graph to section off where I'd like. To anyone that can help, thank you!
0 Kudos
Message 1 of 2
(2,596 Views)

Are you saying you want to section the graph at the peaks?

You can use the array of peaks as the indices for your waveform.  So your first peak is 43.8.  Round up to 44.  Use array subset to get the subset of the array from 0, length 44.

Your 2nd peak is 102.9.  Round to 103.  Use array subset to start at 44, length of 59 (103-44).  And so on.  Then you can put each array into to its own graph or different plots on the same graph.

0 Kudos
Message 2 of 2
(2,593 Views)