09-30-2011 12:21 PM
I am reading in signals from a hardware device and trying to write it into several columns using the Write to Spreadsheet File every few seconds.
My problem is every time a new signal comes in, my program seems to overwrite the previous signal when it writes to file, so when (say after 2 minutes) I go in to check the written file, it only shows 1 row of information. How can I fix this?
Attached is a portion of my VI and the output file.
Solved! Go to Solution.
09-30-2011 12:31 PM
If the program segment shown in your image is inside a loop, then the Write Header section overwrites the file each iteration of the loop. Then you only see the data from the last iteration. Solution: Move the Write Header and Write Channel Names portions outside the loop or put them inside case structures which only execute when you want a new file or new Channels.
Lynn
09-30-2011 12:46 PM
Thanks! This worked after I moved the Write Header and Write Channel Names outside of the loop.