LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine changes in a signal (peaks, valleys and 'flat' zones)

Another example (even better) in the attached picture. How would I find the time values that separate the peaks within a certain level of magnitude just as the red lines show on the picture?
0 Kudos
Message 31 of 39
(1,737 Views)

I could be your developper, but I would be paid for it 😄

 

For the examples you show, seems more that what you are looking for is just a trigger, as in an oscilloscope. So a trigger is easy to implement, as it is a simple condition: (sample[t-1]< Trigg) &&(sample[t] > Trigg)

 

You can even use multiple triggers to detect falling edges and rising edges with different trigger level. Then, if you need more accuracy in the peaks, you could use peak detection but only after the trigger fired, or, you can just take the middle point between a falling and a rising edge.

 

Sorry for the hand-drawed picture, but this would be the final times you would detect if you use triggers and middle points. I would choose middle points because it seems that your signal is "saturating" at some point, having flat "plateau" instead of a peak, which will lead to some difficulties if you try peak detection.

0 Kudos
Message 32 of 39
(1,713 Views)

I'm having a signal send through NI-DAQ 9172 and then turned into a fft. What i'm trying to accomplish here to find the peaks of the fft and put them through a formula to get a temperature data.

Could anyone help

 

Thanks

 

Moe

0 Kudos
Message 33 of 39
(1,646 Views)
One 'quick' suggestion that worked for me: the peak is bigger than the previous point and the next point.
0 Kudos
Message 34 of 39
(1,642 Views)
What do you mean?
0 Kudos
Message 35 of 39
(1,629 Views)

You could use the fancy LabView peak detection vis or you could build some logic that looks for the Ni value that satisfies the following:

 

Ni-1 < Ni

Ni > Ni+1

where i = 1...n-1 represents the index values of an array with 0 to n values coded here as capital N.

 

Message 36 of 39
(1,624 Views)

Thanks

 

One last question. The output that comes out from the peak search is a 2D array and I just want the frequency numbers but don't care about the other values. How would I do that?

0 Kudos
Message 37 of 39
(1,614 Views)
Use 'index array'. Check out the cluster pallete of LabView also; it looks like you are outputting a 2D array of clusters.
Message 38 of 39
(1,612 Views)
thnxs. i got it
0 Kudos
Message 39 of 39
(1,602 Views)