LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DATE and TIME

Im acquiring Temperture readings and writing them to the A column of a Excel Sheet. How can i Acquire the  time and place it in the same excel sheet in the same column or the Column B?

 

 

0 Kudos
Message 1 of 8
(3,017 Views)

What exactly are you having problems with? You have the functions on the Timing palette to get Date/Time as a string or as a numeric (seconds since 1/1/1904). There have been numerous posts on converting the numeric to Excel seconds.

0 Kudos
Message 2 of 8
(3,010 Views)

i use "Tickcount (ms)" and subtract the starttime if i need the timestamp since the program was started

================================
system: Win7 and debian stable
0 Kudos
Message 3 of 8
(3,006 Views)

Thanks for the reply. I am able to write my temperature date to Excel and im also able to write the time stamp but i can not do them both together. I would like for the Temp data to be in Column A and Time Stamp on the Right of it in Column B.

0 Kudos
Message 4 of 8
(3,001 Views)

you can collect the data in a formatted string and write it to a .csv file

================================
system: Win7 and debian stable
0 Kudos
Message 5 of 8
(2,995 Views)

Pretty hard to tell what you are doing wrong when you don't post the code.

0 Kudos
Message 6 of 8
(2,994 Views)

Hi *E*,

 

Below is an example to write to a spreadsheet into two columns. If you are just getting one string for both your Temp and Time then parse them into two string and add one to Column A and the other to Column B otherwise just build an array and put your Temp and Time in separately.

 

https://decibel.ni.com/content/docs/DOC-2101

 

Tim O

Applications Engineer
National Instruments
0 Kudos
Message 7 of 8
(2,956 Views)

Thanks Tim O

0 Kudos
Message 8 of 8
(2,924 Views)