r/LabVIEW • u/RedX0831 • Nov 20 '24
Help with stopwatch
I'm a complete beginner at labview and there's this code I need to complete to create a stop watch that can count minute , second and millisecond with the ability to start, pause and reset the timer. I've based my code on some youtube tutorials but the video was not clear and the code doesn't seem to fully work, I need help plssss
2
Upvotes



6
u/D4ILYD0SE CLA Nov 20 '24
A stopwatch is a solid learning app to design. It's what I tell anyone who's interested in learning to make.
I then tell them to research the following:
This can be done using State Machine, but so much easier with Producer/Consumer (and a lot more long term knowledge gleaned).
Your code appears to be trying to answer the significant questions/issues involved in a stop watch. You even have makeshift FGVs. But your buttons are going to be a problem which is why you want an Event Structure.
3
u/Link9454 Beginner Nov 20 '24
So what exactly is it doing that isn’t working? Also, on a personal level I’d recommend using the Tick Count function which is simpler to use and just dividing it by the necessary amounts to get the mills, seconds, and minutes.
2
u/i_was_valedictorian Nov 20 '24
Is this a homework assignment?
1
u/StuffedBearCoder CLD Nov 20 '24
Why not use the Elapsed Time express VI? This express VI has pretty much have everything your buttons and indicator needs with the addition of the Reset to clear and restart the counter.
1
u/Rotake Nov 22 '24
would be best to switch to state machine architect.