Showing results for 
Search instead for 
Did you mean: 

elapsed time -seconds issue

I am having an issue in trying to provide the right format for this vi, everytime that starts the seconds shows 09 or 07, but then it works fine after the fisrt 10 seconds has passed.  Could somebody help me to correct this issue. Thanks vetry much,
0 Kudos
Message 1 of 7
You can get a more accurate reading, from the first loop iteration using "Get Date/Time in Seconds" as shown.

Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5

LabVIEW Champion

Message 2 of 7

You can also just use the Elapsed Time function.Smiley Wink

Uncheck the automatic reset in the properties window, wire the output to a numeric indicator and set the format and precision to elapsed time.

Message Edited by Dennis Knutson on 07-18-2007 10:06 PM

Message 3 of 7

Thanks Dennis and LV_PRO,

How do I change the format to show days, hours, minutes and seconds (using the elapsed time function)? 




0 Kudos
Message 4 of 7
When you right click on the numeric indicator, select Format & Precision. The default editing mode only allows you to select HH:MM or HH:MM:SS so click on the Advanced Editing Mode (near bottom of screen). You will see the format string of %<%H:%M:%S>t. Add a %D: in front of the %H and you should get a days display.
Message 5 of 7
Back to the original problem:
You probably should use a "wait(ms)" instead of a "wait next ms multiple".
"wait next ms multiple" will be short at the first iteration and will give a random wait between zero and the number you wired as an input the first time it is called inside a loop. Check the help for more details.
Message 6 of 7
Thanks Dennis and altenbach ,
I have made these changes and is working fine!!
Thanks again,

0 Kudos
Message 7 of 7