LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to spreadsheet file vi doesn't append

Solved!
Go to solution

Refer attached vi. I logged a bunch of data in excel .xls file, then restart the vi and log again in the same xls file, but i notice the new data doesn't append to the existing file but replaces all the old data  :womansurprised:

 

In my write spreadsheet file vi, i already set true the append file setting. :womansad:

 

How come this doesn't work, did i miss anything?:womanhappy:

 

Advance thanks.

0 Kudos
Message 1 of 4
(3,681 Views)
If u restarts the spreadsheet file vi,then it wont appends to the previous data.Find the VI to append the datas
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 2 of 4
(3,677 Views)

The problem is not at all with the Write to Spreadsheet but with your VI. The very first thing you do is write the header with the function and there you do not set the append to true.

 

Never wire a constant to the while loop termination terminal. It's a very bad thing to use the abort button in most cases. Do it right with a front panel control.

Message 3 of 4
(3,666 Views)
Solution
Accepted by sunflower2772

Hi,

 

You have made a mistake in the spreadsheet write outside the while loop. Append is not wired (it is FALSE) in the first write to spreadsheet VI. That is why it is overwriting the existing file. Please find the attached figure.

Into the pursuit...
Maverick
Message 4 of 4
(3,664 Views)