LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

seconds to time

Hi, i 'm making a data viewer programm, i've made a scrollbar wich
indicates the total length of my opened data, now i have the duration of
my data in seconds and hooked it up to a property node of the scrollbar
named: "scale.maximum" and want the scrollbar to display this in
hour/minutes/seconds now if i go to the scrollbar's "format and
precission" menu and change it into time (date unused) it automatically
sets the time to 02:00:00 and it has to start with: 00:00:00 and then
00:00:02 etc... Does anyone know what to do?

Regards,
Thijs Boeree
0 Kudos
Message 1 of 3
(2,440 Views)
Labview interprets the number passed into an indicator formatted for date & time as seconds since Jan. 1st 1904. Set the format to decimal then select "Relative Time (seconds)" instead of "Floating Point Notation" and the seconds should be converted to Hours:Minutes:Seconds. This should be what you are looking for.

Brian Vibert
Message 2 of 3
(2,440 Views)
Hi Thijs,

the default for a new control is 0. This is converted to seconds
since ... Here is depends on your local time what int32 = 0 means. On
my machine it is 2:00:00 1/1/1904 MESZ. Just put a meaningfull time
to the control/indicator.

Stephan Heising

Thijs Boeree wrote:
>
> Hi, i 'm making a data viewer programm, i've made a scrollbar wich
> indicates the total length of my opened data, now i have the duration of
> my data in seconds and hooked it up to a property node of the scrollbar
> named: "scale.maximum" and want the scrollbar to display this in
> hour/minutes/seconds now if i go to the scrollbar's "format and
> precission" menu and change it into time (date unused) it automatically
> sets the time to 02:00:00 and it has to start with: 00:00:00 and then

> 00:00:02 etc... Does anyone know what to do?
>
> Regards,
> Thijs Boeree

--
Stephan Heising Tel: +41 22 76 72160
PS Division Fax: +41 22 76 79145
CERN G01620
CH 1211 Geneve 23 email: stephan.heising@cern.ch
0 Kudos
Message 3 of 3
(2,440 Views)