LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time duration numeric format

Hi all,

I want to format a number in seconds as a time duration (hh:mm:ss). It must
not be formatted as an absolute time, therefore a number of zero should not
give "02:00:05" in the formatted output. It is a duration, therefore a
number of 40 (seconds) should be formatted as "00:00:40", 70 should be
"00:01:10", etc. I want to use this in a control on the front panel to
input a time duration.

Is this possible in LabVIEW? Any sugestions?


Gys van Zyl
0 Kudos
Message 1 of 4
(2,669 Views)
Two solutions come to mind, illustrated in the attachement.

Good luck.
0 Kudos
Message 2 of 4
(2,669 Views)
> I want to format a number in seconds as a time duration (hh:mm:ss). It must
> not be formatted as an absolute time, therefore a number of zero should not
> give "02:00:05" in the formatted output. It is a duration, therefore a
> number of 40 (seconds) should be formatted as "00:00:40", 70 should be
> "00:01:10", etc. I want to use this in a control on the front panel to
> input a time duration.
>
> Is this possible in LabVIEW? Any sugestions?
>


Look at using the format called Relative Time.

Greg McKaskle
0 Kudos
Message 3 of 4
(2,669 Views)
Thanks,

I can't believe I missed it. I kept looking for settings under "Date &
Time" format!

"Greg McKaskle" wrote in message
news:3DC094F1.2010901@austin.rr.com...
> > I want to format a number in seconds as a time duration (hh:mm:ss). It
must
> > not be formatted as an absolute time, therefore a number of zero should
not
> > give "02:00:05" in the formatted output. It is a duration, therefore a
> > number of 40 (seconds) should be formatted as "00:00:40", 70 should be
> > "00:01:10", etc. I want to use this in a control on the front panel to
> > input a time duration.
> >
> > Is this possible in LabVIEW? Any sugestions?
> >
>
>
> Look at using the format called Relative Time.
>
> Greg McKaskle
>
0 Kudos
Message 4 of 4
(2,669 Views)