LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display remaining time in time format?

I have computed the remaining time in my application for my test. I want to display this on the front panel in a time format, ie xx:xx:xx. I cannot figure out how to do this. I have a test time total then I subtract the current time and that results in seconds remaining. How do I display this on the front panel in a time format? Any help would be appreciated.
 
Thanks,
Troy
0 Kudos
Message 1 of 6
(4,939 Views)
You could do something similar to the example shown in this post. Since you have seconds instead of milliseconds, the first array element would be 60. Should be easy to adapt. See how far you get. 🙂
0 Kudos
Message 2 of 6
(4,930 Views)
Altenbach - Thanks for your help. With a little bit of modification this worked out great. I am just surprised that I had to go to this length for something as simple as it sounds. At the end of the day...it works.
 
Troy
0 Kudos
Message 3 of 6
(4,914 Views)
If you have time in seconds and just want to display it as xx:xx:xx, create a numeric indicator and then right click, select Format & Precision, and then select Relative Time.
Message 4 of 6
(4,910 Views)

Dennis - Thanks for your reply. I tried that and it works just fine as well.

 

Troy

0 Kudos
Message 5 of 6
(4,907 Views)
Dennis's solution is probably preferred in most simple cases.
 
(Mine gives you more flexibility, e.g. if you want to display multiples of 24 hours as days, multiples of 7 days as weeks, etc. ) 😄
0 Kudos
Message 6 of 6
(4,895 Views)