LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a file

Hello,

 

In my program I would like to do a measurement, save everything in a .txt file and finish it. After that I want to restart the measurement (with new settings) and save the new data in the same file I used before, without loosing the initial data, but adding new rows after the previous measurement.

 

Any idea?

 

thank you 

0 Kudos
Message 1 of 3
(2,465 Views)

Hi,

 

Open the Existing file & before writing into the file, set the position to End in the file using "Set File Position"  function.

So that the new data will be appended to the previous data.

 

Regards,

 

Raja

0 Kudos
Message 2 of 3
(2,450 Views)
If you are using the raw file I/O functions, then do as above. If you are using the Write To Spreadsheet File (a better choice), there's an input to that function to control whether to append or overwrite.
0 Kudos
Message 3 of 3
(2,430 Views)