Hello,
I have a subvi in my project that is used to log data to a text file according to a user specified recording interval. I use the Get Date/Time in seconds function and concatenate the output to my data using format into string. Then I use the Write to Text File function to write the string to the file. 99% of the time, Write to Text seem to appends a CRLF to the end of the line. 1% of the time it doesn't seem to append a CRLF and I end up with a line in my log file that looks like "Timestamp,Data,Next_Timestamp,Next_Data"
I suspect a race condition maybe causing my trouble due to the inconsistent nature of the problem, but I don't see where it could be coming from. I've attached a .png showing my logfile code. Please let me know if you need any additional information. Thanks!