LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TIME STAMP PROBLEM

Good evening.
Firstly, excuse me by me bad-english, and I think it will be so hard understand me.
I'm using "time stamp" controls, indicator and functions, but I have a problem, that consist in time stamp controls forbbide me write 00:00, 00:30,00:40... until 00:59.
Data conversion is erroneal for this problem.
I attacht this vi  for probe this problem.
 
LO ESCRIBO AHORA EN ESPAÑOL
Tengo un grave problema con los controles e indicadores "time stamp", asi como los vi relacionados con la conversión de datos, por ejemplo con la función "numeric to time stamp" . El problema es que no se me permite escribir valores desde las 00:00 horas hasta las 01:00.
Si por el contrario, lo que quiero hacer es convertir un numeric a time stamp, a traves de "numeric to time stamp", si escribo valores entre 0 y 3599 la salida de la función es 01:00, y esto es erroneo.
Agradecería si alguien supiese solucionarme el problema.
 
0 Kudos
Message 1 of 7
(3,131 Views)
If I understand your problem correctly, it may be due to the fact that the time stamp indicator and control adjusts the display according to the computer's time zone setting.  The time stamp datatype is just the number of seconds elapsed since 12:00 a.m., Friday, January 1, 1904, UTC.  Since my time zone is UTC-6, the minimum time stamp I can display is 6:00 a.m., Saturday, December 31, 1903. 

If you are trying to get the number of the hour from your time stamp (0-23), try the Seconds to Date/Time function.  If you are just interested in tracking time elapsed from some arbitrary zero point, use a regular double, but set the display format to Relative Time so the display is in HH:MM:SS.

0 Kudos
Message 2 of 7
(3,100 Views)
thanks for your answer, but my problem is in the "time stamp" control. I cannot write from 00:00 -00:59! It´s so xtrange!
0 Kudos
Message 3 of 7
(3,093 Views)
What is your time zone?

0 Kudos
Message 4 of 7
(3,084 Views)
spain gmt +1,
i´m going to proof the vi changing my zone...
0 Kudos
Message 5 of 7
(3,079 Views)
Time stamps are abolute times, not relative times.  They include time, date, year, etc.  Even if all that information isn't displayed on the control/indicator, it's still in the data.  The smallest time the time stamp can hold is 00:00.001 01/01/1904 UTC.  In your time zone, that's 01:00.001 01/01/1904.  When you try to put a time of 00:59 in your time zone of UTC+1, you're telling the time stamp to record 12:59.00 12/31/1903 UTC, which it can't do. 

Unless you need to record the exact date, I would suggest using a double instead of a timestamp.  You can format the double to display as a HH:MM:SS time.
Message 6 of 7
(3,073 Views)
ONE MILLION OF THANKS!
I dont know that double is possible to use as a relative time!
Mi problem has been fixed, but the most important is that I've to learn about time stamp.
thanks again and sorry for my english
0 Kudos
Message 7 of 7
(3,069 Views)