LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopwatch

I need help with a very easy task. That task is: Stopwatch with Start/Stop button and measuring time of reaction between Start and Stop,and the best reaction time is shown? Thank you a lot with respect A.Dragic

0 Kudos
Message 1 of 8
(4,875 Views)

Sounds like a simple homework assignment.  So what have you tried?  Where are you stuck?


GCentral
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
Message 2 of 8
(4,862 Views)

I know how to make stopwatch,but i can't make it to restart elapsed time with using the case structure. Here it is picture how i tried. I need help with restarting elapsed time when pressing Start/Stop button,so i can measure reaction time between Start and Stop.

false.PNGTrue.PNG

0 Kudos
Message 3 of 8
(4,847 Views)

Is this what you're looking for?

Cheers


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

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


Message 4 of 8
(4,803 Views)

It's similar like that only i need and stopwatch in that,when i press Start for stopwatch elapsed time goes off,when press stop for stopwatch elapsed time start counting,and next time when press start for stopwatch i need to restart elapsed time to starts from 0. I can't  find way to do that. Thanks for a solution.

0 Kudos
Message 5 of 8
(4,756 Views)

Hi dragic,

 

read the help for ElapsedTime function and all it's inputs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 8
(4,750 Views)

You don't need the case structure.  There is an input to the Elapsed Time to reset the time.  You will probably also need a shift register and a Select function in order to hold the previous time while you are stopped.


GCentral
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
Message 7 of 8
(4,720 Views)

That would help,thanks a lot,now i need to measure time between elapsed time,and next elapsed time,and to show what time is less,i think i can figure out how to do that. Thanks again!

0 Kudos
Message 8 of 8
(4,685 Views)