LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need to change type of 1-D array of Time stamp to 2-D array of string

hi 

 

Any suggestions?(see the picture). i need to write this value in Excel, but seems to be incompatible formats.

using Labview 2010.

 

thanks

 

 

0 Kudos
Message 1 of 4
(2,639 Views)

First, you need to transform the timestamps to strings. There's several ways to do that, have a look at "Format Date/Time String" for instance.

Then you need to insert a "Build Array" to add a dimension to the 1D array. This will result in a 2D array, which you might have to transpose before writing to Excel.

 

0 Kudos
Message 2 of 4
(2,622 Views)

Are you trying to write out a single "row" (or column) in Excel?  As I recall, the LabVIEW Excel reports like to write out "areas", i.e. a 2-D structure.  To write a single row, simply push the 1-D array through "Build Array" (with only the single input) and it creates a suitable 2-D array.  Note to write a single cell, you'd push it through two such Build Array components (once to build a 1-D row, next to build a 2-D "area").

0 Kudos
Message 3 of 4
(2,606 Views)

I am trying to get these values in Rows. i will try your suggestion

thanks

 

0 Kudos
Message 4 of 4
(2,590 Views)