LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing elapsed time

Hello, I need a little help with a simingly easy problem.

I need to compare times and increment an numeric indicator. I have a start/stop button and I need to make a program that registers how many times the reaction time was faster than 100ms, in between 100ms and 200ms and greater than 200ms. For example if I press the Star/stop button twice and the time between the clicks was lesser than 100ms the numeric indicator increases by 1. I hope you get the idea. Here is what I made so far and I'm stuck with the comparison. The case structure doesn't work, that's where Im stuck. I tried it with shift registers but instead of increasing just by 1 it keeps increasing till infinity. Please if somebody knows what do do help. 🙂 Thanks in advance. Capture.PNG

0 Kudos
Message 1 of 4
(3,357 Views)

Please include a Snippet of your code, or attach your VIs, so that we can better assist you. We are here to help, but won't spend all day recreating your code from scratch.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 4
(3,337 Views)

Thanks for the reply and sorry for not including the VI. Here it is.

0 Kudos
Message 3 of 4
(3,323 Views)
0 Kudos
Message 4 of 4
(3,301 Views)