LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combine elements of a 2D array by Row

Solved!
Go to solution

Hi all,

 

I am pulling in a column of Dates and a column of Times from a text file, creating a 2D array of this data, and then I am stuck trying to merge the two columns together.

 

For example, I need to take the Date and Time data from Row 0 of the 2D array are combine them into Index 0 of a 1D array. Then I need to convert this "time stamp" into seconds. Attached is an example.  

 

Any help would be much appreciated

 

Erik

0 Kudos
Message 1 of 3
(2,413 Views)
Solution
Accepted by topic author EMunson

Do you need an array of strings? What character(s) will separate the data from the time?

 

Conversion to seconds using the LabVIEW epoch of 12:00 AM, January 1, 1904 is fairly straighforward althoug properly accounting for Daylight Savings Time and leap seconds can be tricky. Conversion to any other epoch requires more effort.

 

Lynn

Message 2 of 3
(2,391 Views)

No that looks fantastic in the end I just need the seconds array which you included.  Thank you so much!

0 Kudos
Message 3 of 3
(2,379 Views)