01-31-2020 12:34 PM - edited 01-31-2020 12:36 PM
For some reason the program only writes one line despite the code executing multiple times?
Solved! Go to Solution.
01-31-2020 12:49 PM - edited 01-31-2020 12:49 PM
Yes. Because you keep reopening the file within the loop which will cause it to reset the file pointer to the beginning. It may also cause a memory leak of open file references you never close.
Put the File Open before the while loop. Add File Close after the while loop.
Also, clean up your block diagram using the Block Diagram Cleanup button on the toolbar.
01-31-2020 06:55 PM
I did not know about that cleanup function. That is amazing, thank you very much.
01-31-2020 09:37 PM
See also the same question with basically the same answer here: https://forums.ni.com/t5/LabVIEW/Trouble-writing-excel-column-titles-in-my-measurement-file/m-p/4011...