ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Min/Max for computing damping

Solved!
Go to solution
Solution
Accepted by glskinner84

Here are two ways to do it without using a loop.  One uses In Range & Coerce to get a boolean array of peaks within the desired range. The other uses Threshold 1D Array on a reversed array.

 

Note: If you choose one of these methods, you will need to extract the same subset of the Locations array.

 

Lynn

Message 11 of 16
(1,644 Views)

Well, it wasn't for a lack of trying...I looked at this for 10 hours today...I guess I need more sleep.Thank you Lynn.

 

Lynn, why would I need the location if I have the index(amplitude)? My time values don't really matter to me.

0 Kudos
Message 12 of 16
(1,626 Views)

All I'm really looking for is the index in which the decay begins...I get then add 5 to this and get my 6th amplitude value in the decay.

0 Kudos
Message 13 of 16
(1,611 Views)

If you were to fit the data to an exponential as I mentioned earlier, then you would need both amplitudes and locations. For your ratio method you do not need the locations.

 

Lynn

Message 14 of 16
(1,567 Views)

 I think I will try both to get a comparison. The locations tie into the 'X' input on the exponential fit.vi, correct? 

0 Kudos
Message 15 of 16
(1,556 Views)

Yes.

Message 16 of 16
(1,549 Views)