LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

append time stamp as a column in an excel file

Solved!
Go to solution

Hi

 

i want to add timestamp to the last column  of my excel file

my data is this 

 

columnA   columnB  column C  columnD

temp10     temp11    temp12     timestamp       these are header name

 

74.212     73.122     73.222      11AM:23:59.012

73.444     73.223     74.322      11AM:24:02.083

73.445     73.478     75.555       11AM.24:03.833

  and continue

 

I can use write spreadsheet to have the three numeric tempdata but the last column formatted as time stamp and string 

how do I add time stamp to my data and call the spreadsheet write VI to append to the excel file ?

 

help

0 Kudos
Message 1 of 3
(3,145 Views)

You have at least two possibilities:  One is to do the formatting yourself with string functions and write the data as a text file or an array of strings.

 

Another is to convert the timestamp to a Double and save it as numeric data.  This is only useful if your are going to read the data back into LV and analyze it there, because Excel's numeric representation of date and time is different from that used by LV.

 

Lynn 

Message 2 of 3
(3,141 Views)
Solution
Accepted by topic author trout00

Hi trout00,

I agree with johnsold.  I think your best bet will be to use a string and do a little formating your self.  It should not be to difficult. 

Adam H
National Instruments
Applications Engineer
0 Kudos
Message 3 of 3
(3,116 Views)