LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average from Stopwatch

Solved!
Go to solution

Hi everbody,

 

I´m using LV to recognize particles in fluid flow. I´m using "Elapsed Time" Expres VI as a stopwatch. Time is running until the particle is recognized, when no particle is recognized, time is resetted and it starts to run again when new incoming particle is recognized. I need to calculate average time for one particle in my viewfield. That means, take highest value from stopwatch before each reset, sum them together and divide by number of summed values. But I have no idea how to choose just this highest values.

 

I someone has an idea, please, reply. I don´t need a step by step instructions, just idea...

 

Thanks

0 Kudos
Message 1 of 3
(2,268 Views)
Solution
Accepted by topic author Dzanko

When you're resetting the ELAPSED TIMER, you must be using a BOOLEAN, use the same BOOLEAN to operate a CASE STRUCTURE and inside TRUE, add the ELAPSED TIME (DBL), then take MEAN, whenever you want.

 

Also it will be good, if you can share your code... So that we can understand what is wrong with the approach.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 3
(2,256 Views)

@Dzanko wrote:

I don´t need a step by step instructions, just idea...


Find the attached IDEA...!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 3 of 3
(2,251 Views)