I’m trying to write to a text file. I’m attaching 2 vi’s. test1.vi only record the latest data and test 2 records all the data. They are very similar in coding, why test1.vi does not work? Additionally, I would like to append to the file if it exists (add new rows to it). If not, I would like it to create a new one. How would I do it? Thanks.
Test2, you open the reference to the file outside the loop, so it is called only one time. Test1 opens the reference each iteration. This causes the data to be overwritten. Move the open file outside of the loop and it should work the same.