08-19-2011 08:28 AM
I want to add a little function to my program where it counts how long it takes for the program to finish. Essentially, you hit run, then the clock starts counting until the end of the program with an indicator so the user can see how long its been/takes to finish.
Thank you.
08-19-2011 08:37 AM
08-19-2011 09:11 AM
You could also use the Elapsed Time Express VI.
You should also consider voting for this idea: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-a-quick-quot-Timing-Probe-quot-for-Timing-Metric...
08-19-2011 09:43 AM
thank you for the replies, they definitely help.
I was also wondering is it possible to have an indicator that counts 1 second at a time as the program is running (basically like a digital clock)? The solutions provided will tell me the amount of time it takes from start to finish which still helps alot. I just thought it'll be cool for the user to see a clock timer (h:mm:ss) counting up while the program is being run.
I tried messing around with the Elapsed Time Express VI but it's not really working, and also, is it possible to use this to do the clock counting idea mentioned above?
thanks.
08-19-2011 09:51 AM
08-19-2011 09:54 AM
In this community nugget I presented a re-usable timer component that may meet your needs. I've extracted and attached the Resource Module its enum control type def and a sub-vi that handles the display format. Feel free to look into the nugget for an example of how the module was used.
08-19-2011 10:13 AM
Crap, I forgot to mention that I want to start the count at 0:00:00 then count up from here. Using the time stamp idea does work and counts up but I would prefer starting at 0 then count up without the date or current time. So if the program takes 1 hour and 15 minutes(10 seconds) from start to finish for example, it'll display 1:15:10 on the front panel.
Again, thank you for the help.
08-19-2011 10:16 AM
08-19-2011 10:28 AM
her's the example.
NOTE: somehow these cases got swapped in the timer vi i attached earlier. The picture below has correct case for update