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
(2,281 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(2,265 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

 
Download All
0 Kudos
Message 3 of 7
(2,254 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,246 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
(2,239 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,235 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
(2,212 Views)