LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time stamp on spreadsheet when I click stop

I've some continuous data writing to a spreadsheet file,and I'd like to have the time printed next to the corresponding data everytime when I click the stop button. How can I do that? Thanks.
0 Kudos
Message 1 of 4
(2,671 Views)
Use the Get Date/Time String VI (On the Time & Dialogue palette). Wire the time string output of this to the Write Characters To File VI on the File IO palette. Use the same file path as your speadsheet. (I am assuming you are using the Write to Speadsheet File VI). Make sure you have append to file set to true, so it adds the date / time to the end of your data and does not overwrite it.

Nick.
0 Kudos
Message 2 of 4
(2,671 Views)
Thanks. I tried that, but it only gives me a time stamp every second. What I want is actually a time stamp whenever I click the STOP button. How could I do that? Thanks.
0 Kudos
Message 3 of 4
(2,671 Views)
If you want a time stamp only when you click a button, wire the button to a case statement or Select function so that only the True case has the time.
Message 4 of 4
(2,671 Views)