04-26-2006 05:19 AM
04-26-2006 09:52 AM - edited 04-26-2006 09:52 AM
Message Edited by shoneill on 04-26-2006 04:52 PM
04-26-2006 10:14 AM
04-26-2006 10:19 AM
04-26-2006 11:16 AM
Shane,
I pulled up an older application I had written to use the Write Character to File VI. LV8 no longer shows it (or at least it is not easily found). I ran it and it works the way it is supposed to. Data is appended when requested. I re-tested the newer VIs and they do not work as expected. While there is no control for Appending, the documentation states that using Open/Create should do the appending. While the contents of the file are not completely eliminated, the pointer is placed at the beginning of the file and when the results are written they overwrite the existing upto the number of bytes read in. The results are definetly strange. I wrote a new Vi which does the open and then moves the pointer to the end of the file to avoid this issue.
Bob
04-26-2006 01:16 PM
07-03-2006 08:03 AM
Hi
How did you manage to append data to an exist file? I did not understand how you said you solve your problem. I'm using LV 8 and I have spent hours on it, buit it still won't append data.
I used a Open/Create/Replace VI >> Set File Position >> Write to Binary File >> Close Vi. I also used a Get File Size VI as the Offset input to the Set File Position VI, but nothing is happening, it just overrides the existing data.
Need some help please.
This is a simple task in C or VB, but LV 8 is proving otherwise
07-05-2006 07:03 AM
I was very tricky, but I sorted it the long way, as LV 8 has lost most of the most VI for the job. First I read the contents of the File then use it as a String Input to an Append True/False String VI, then the new data use use as the True input string to the Append True/False String VI, an Empty String was connected to the False Input and a a True Constant connected to the Selector Input of the Append True/False String VI. The Output of the Append True/False String VI is then save to the original file using a Write to Binary File VI.
Any body who as problem with LV 8 appending problem, and can't understand how I did it, let me know.