LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Time Format

Hello, 

 

Mei DAQ writes the Timestamp as following:

 

250183,106000

 

So my Problem is, that this is no Epoch-Timestamp, isn´t it?

 

I have tried Epoch-Time since 1904, 1970,1980,2000.... 

 

Can somebody help me? 

The timestamp should result in 2019-06-17 07:45

 

thanks a lot!

0 Kudos
Message 1 of 7
(202 Views)

Hi Johannes,

 

do you mind to attach your VI creating those "timestamps"?

How is that "250183,106000" number created?

 

What have you tried so far?

 

Simple starter:

check.png

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 7
(186 Views)

Hello Gerd, 

 

thanks for qick Response!

I have attached the .vi and the resultung .lvm.

 

I want to recalcalculate the "real time" from this X_Time_value.


Unfortunately, I do not understand how this number is calculated. I have already tried to interpret the number as Unix timestamp and calculate back. Unfortunately, that does not work. I already have a lot of data and would like to lose it now. That means a change to the .vi would be only my last solution.

 

Thanks!

 

 

vi.JPGres.JPG

 
0 Kudos
Message 3 of 7
(175 Views)

Hi Johannes,

 

you started your measurement on 2019-06-04 07:24:16 as written in the header.

The measurement data are from 2019-06-12 07:55:11 as written in the data section. The difference between both timestamps is about 8 days and 30mins.

 

That X values is the time in seconds since start of measurement: 693055s = 8d30m55s. Fits nicely to those timestamps given in your data file!

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 7
(167 Views)

Wow, thanks!

 

One question left.

About the half of the files look like this:

 

t1.JPG

 

Two files before... everythings seem to be okay.

Do you know whats Happening here? 

 

l2.JPG

 

Did LabVIEW lost some time reference here? 

 

thanks!!

0 Kudos
Message 5 of 7
(160 Views)

Hi Johannes,

 

Do you know whats Happening here?

You did something with your computer or with your VI…

 

Did LabVIEW lost some time reference here?

Apparently yes.

You still have timestamps in the data section and so you can calculate the correct timestamp for the header…

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 6 of 7
(156 Views)

It would really help to see the code that outputs the Timestamp in such a strange format.  Have you looked at the functions in the Time Palette?  Have you tried the basic "Get Date/Time in Seconds" and wiring a default indicator to its output?  If you look at the Indicator on the Front Panel, you'll see it shows Date and Time, and when you run it, you get the current Date and Time ...

 

Bob Schor

0 Kudos
Message 7 of 7
(133 Views)