LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hours:Minutes:Seconds Control

I'd like to make a delayed start feature with a control containing hours, minutes, and seconds. I think splitting it up into three separate controls is the way to go, but I can't find a way to automatically place a zero before a single digit value.

Example of what I'd like the user to see for a 4 hr and 20 minute delay: 04:20:00


But, right now, it looks like this: 4 :20: 0


(the colons are fixed between three controls)


Thanks,


Tom
0 Kudos
Message 1 of 3
(3,317 Views)
Tom,
For an example to get the format you need: Wire the 'Get Date/Time In Seconds' VI into the 'Format Date/Time String' VI, which also needs a time format string input. Make this format string like this: %2H:%2M:2S

That format should do what you need,
Good luck with it, Doug
0 Kudos
Message 2 of 3
(3,317 Views)
Oops, should be %2H:%2M:%2S
0 Kudos
Message 3 of 3
(3,317 Views)