LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a stopwatch in Labview 6

Good day to all,
                         I am trying to create a stopwatch in Labview 6. I'm very new to the program and don't know where to strat. Any help wouold be appreciated.

Danien.
0 Kudos
Message 1 of 9
(8,017 Views)
First, you should start with some tutorials to learn the basics of LabVIEW. After that, it should be easy to put something together that functions like a stopwatch.
 
You probably need a while loop, a few boolean buttons, and a numeric display, some tools from the timing palette and a lenght of wire and some trimmings. 😄
 
Anther possibility would be to search the forum for the word "stopwatch". Have you tried? 🙂


Message Edited by altenbach on 04-24-2008 09:24 PM
0 Kudos
Message 2 of 9
(8,014 Views)
I actually did look through some of the tutorials and I have a better idea now. I'm going to look at it now, and if I have any questions I'll post them along with this thread. Thanks for your help.

"D".
0 Kudos
Message 3 of 9
(7,974 Views)
This applies to me also.

I'm also creating a digital stopwatch and I have a while loop set up with a counter relaying the number of iterations that the loop has gone through. I also have a "wait" icon set up to slow down the time between iterations.

My question is how do I set up a boolean function to reset the count when it is activated.

I think that this would involve taking the count and multiplying it by zero somewhere along the way.

Any suggestions?

Thanks.
0 Kudos
Message 4 of 9
(7,789 Views)
Think about a boolean with the Mechanical Action set to Latch. Then wire the boolean value to a case structure. One case has a zero constant wired to the the output tunnel. In the other case the counter value passes through. A selector function from the Comparisons palette can be used similarly.

Lynn
0 Kudos
Message 5 of 9
(7,756 Views)

To learn more about LabVIEW, here are more of these tutorials.

 

0 Kudos
Message 6 of 9
(7,748 Views)
Thank you very much for your help guys. I've looked at the tutorials and I'm well on my way towards the stopwatch working, but I want to customize it a bit and don't know how to. I'd like it, if there were only two buttons on the front panel. A start stop button that you could push to do just that, and then a second button that would reset the digital readout to zero.

Is there a way to initiate the running of the while loop by a boolean control, and secondly how should the reset button be put in?

I'm including my attempt.

Thank you.

Message 7 of 9
(7,737 Views)
Also Joelabview, thank you for the tutorial page, but I need labview 8.5 or higher to view them and I'm dealing with Labview 6.0. Thanks though.
0 Kudos
Message 8 of 9
(7,736 Views)
Your attempt shows that you have an issue creating an algorithm. You must not use LabVIEW for just Try-and-Error. LabVIEW is a programming language, so if you don't think first and implement as second step, you will be "penalized", like in all other programming languages out there as well (C/C++, C#, Delphi, VB, Fortran, .....).
So please step back and think about what you are trying to create. What are the "mechanics" behind that? Where do you have to loop, where to "decide" things? These are the questions you have to answer first before going into LV!

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 9 of 9
(7,725 Views)