LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multifaceted elapsed time control, reset, pause, etc dilemma.

Ralph,

Here is a quick and dirty attempt to illustrate one implementation of a state machine for your application. It does not do any error checking and some of the logic may be flawed since I did not have a complete state transition diagram.

Lynn
0 Kudos
Message 11 of 13
(882 Views)
Thanks Lynn I'll try that in the morning.  I really appreciate this.  Had more of an open-ended deadline on this when I started and now I've got this ONE functionality holding it back.
___________________________________________________________________
Still confused after 8 years.
0 Kudos
Message 12 of 13
(878 Views)
Hello,
 
Let me take your questions in order:
 
1. Yes, and you have all the information to program that!  You have the elapsed time in seconds, so all you have to do is compute what that is in terms of  hours, minutes, and seconds.  Since this is trivial to implement, and I know you are at the beginning of the learning phase, I implemented it for you (see the attached new Example - it still uses the stopwatch subVI of course, but you should still have that, or just see my previous post to get it).
 
2. For the stopwatch subVI, you should keep the enum, since your users will never touch that.  For the example (application level) interface, you can use whatever interface you'd like.  The enum is convenient, but you could use a set of radio buttons for example, where they would click the selection they want, and that way the actual selections can be spaced (you can move the radio buttons as far apart as you'd like).  I'll leave that implementation choice to you.
 
I hope this helps you further!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
Message 13 of 13
(873 Views)