DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp date

Solved!
Go to solution

I have a 3rd-party card that I use to collect data.  The data is imbedded with an IRIG timestamp.  I'm able to extract the timestamp data and display it correctly in LabVIEW. (see enclosed VI).  The data is saved in a .csv file.  In DIAdem, I read the file, then using the 2 channels containing time data I create a timestamp (time format) channel using the Calculator.  I seem to be computing the time portion just fine, but not the date portion.  Below is the formula in the calculator:

 

Ch("[1]/timestamp) = Ch("[1]/seconds) + 2082844800 + Ch("[1]/subseconds)*1.0E-6

 

What am I missing?

0 Kudos
Message 1 of 3
(4,722 Views)

Hi faustina,

 

If your CSV file that you're reading into DIAdem shows seconds since 1970, then the offset you want to add is 62167132800.  In that case I would recommend you build that conversion into the DataPlugin you use to read the CSV file into DIAdem.

 

If the CSV file was written by LabVIEW and stores seconds since 1904, the the offset you want to add is 60084288000.  In that case I'd recommend exporting to TDMS file instead.

 

Brad Turpin

DIAdem Product Support Egineer

National Instruments

0 Kudos
Message 2 of 3
(4,700 Views)
Solution
Accepted by topic author faustina

The data files (although collected with LabVIEW) are processed with another application.  It's the output of that application (.csv) that needs to be read in DIAdem.  The 62167132800 value works.

0 Kudos
Message 3 of 3
(4,673 Views)