LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elapsed time between 2 points

Solved!
Go to solution

Hello,

 

I'm trying to measure the time between 2 datapoints.
When the data acquirement begins the time should be saved and when the signal reaches 90% of it's max.
Those 2 times then get subtracted and then you have the elapsed time.
But I'm not quite sure how to do this... I was thinking with flat sequences.

0 Kudos
Message 1 of 2
(2,397 Views)
Solution
Accepted by airbornehawk

Are you constantly capturing a signal?  What is your sample rate?

 

What you need to do first to capture the signal.  You can then find the maximum value with the Array Max & Min function.  Calculate your 90% (0.9*Max).  Search the data until your get greater or equal to the 90% mark.  Get that sampling number.  Your time is then number of samples to the 90% mark divided by the sample rate (in Samples/Second).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,389 Views)