LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format date/time string when called at lot of places in a vi gives same time value

Like this..... When written to a text file
 
 7/25/2007 10:42:40 AM 3B FF 94 0 0 81 31 FE 45 4D 34 20 49 46 44 20 54 65 73 74 43 61 72 64
 
 7/25/2007 10:42:40 AM 3B FF 94 0 FF 80 B1 FE 45 1F 3 0 68 D2 76 0 0 28 FE 5 22 31 80 0 90 0
 
 7/25/2007 10:42:40 AM 3B BA 96 0 81 31 86 5D 0 64 5 60 2 3 31 80 90 0 66
 
 7/25/2007 10:42:40 AM 3B B7 94 0 81 31 FE 65 53 50 4B 32 33 90 0 D1
 7/25/2007 10:42:40 AM 3B FF 94 0 0 81 31 FE 45 4D 34 20 49 46 44 20 54 65 73 74 43 61 72 64
 
 7/25/2007 10:42:40 AM 3B FF 94 0 FF 80 B1 FE 45 1F 3 0 68 D2 76 0 0 28 FE 5 22 31 80 0 90 0
 
 7/25/2007 10:42:40 AM 3B BA 96 0 81 31 86 5D 0 64 5 60 2 3 31 80 90 0 66
 
 7/25/2007 10:42:40 AM 3B B7 94 0 81 31 FE 65 53 50 4B 32 33 90 0 D1
0 Kudos
Message 1 of 6
(2,286 Views)
Hi!
   Can you show an example (attach a VI) of this behavior?

graziano
0 Kudos
Message 2 of 6
(2,283 Views)
Two ideas :
  • 7/25/2007 ??? Is the time stamp input of the Format date/Time String function wired or unwired ? The date on your computer should be adjusted if unwired !
  • You use only a one second resolution. Are you shure the delay between the multiple calls is longer ?
Message 3 of 6
(2,278 Views)

JB wrote:
Two ideas :
  • 7/25/2007 ??? Is the time stamp input of the Format date/Time String function wired or unwired ? The date on your computer should be adjusted if unwired !
  • You use only a one second resolution. Are you shure the delay between the multiple calls is longer ?

For some reasons, the system year was set to 2007. The time stamp input was not wired. What to be wired to it?
 
Delay between multiple calls is longer enough. 4 seconds. That's not a problem. What is that one second resolution? what it means?
0 Kudos
Message 4 of 6
(2,266 Views)


mathan a écrit:
For some reasons, the system year was set to 2007. The time stamp input was not wired. What to be wired to it?
 
Delay between multiple calls is longer enough. 4 seconds. That's not a problem. What is that one second resolution? what it means?



  • Unwired --> current date/time
  • Wired --> any date/time (read from file, user input...)

If the time format string input of the Format Date/Time String function is unwired, the default format specifier (%c) will be used. Therefore, the locale-specific date/time format will be used. It is also possible to get customized formats. See the context help of this function.

For example %m/%d/%Y %H:%M:%S%1u will format the date/time with a 0.1s resolution. If the delay is really about 4 seconds, then this will not solve your problem.


Message 5 of 6
(2,262 Views)

The most likely option is that you have a bug in your code and you calling all of those within the same second. Without seeing the code there's no way to tell, so you should at least upload an image.


___________________
Try to take over the world!
Message 6 of 6
(2,258 Views)