Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Append to file and file header problems

I have a VI which write a certain number of data columns to a file with headers. the headers are written in a previous seq loop and then the data is added afterards. All works fine, however!
 
 
IF I want to replace this dats file, say the data is not as I expect it and I rerun the progrma the original header file is replaced but the old data now appears at the bottom of the new stuff. Its not a huge issue but I expect I can re-write a new file with new header and data columns.
 
The problem is having the append option for the data i.e appending it to the header, writing the new header only re-writes the header part of the file and once the new data comes along the append kicks in and appends the old data to the new.
 
Any suggestions.
 
Will.
0 Kudos
Message 1 of 2
(2,883 Views)
I saved the header and data in .xls file data using the same logic  it worked just fine
 
when I select 'Replace' for 'replace to existing file?' dialog, the new file created has new header as well as new data.
 
Probably the data is not refreshed in your vi.
Check that out
 
Regards,
Dev
0 Kudos
Message 2 of 2
(2,875 Views)