Hi I have a loop that acquires data from NI DAQ and writes data to a text file.
'Acquiring' and 'writing to file' stages are separate sub VIs inside a loop. As soon as set of 'N' data is acquired, it is sent to write to file subVI to write in File 'X'. The process is repeated until acquisition is done for say, "t" seconds. I wanted to write the data into two files inside the "Write to File" subVI. For this I just send a File refnum to the subVI and write data to a second file (File 'Y') after writing the first (File 'X'). I use a "flush file" command for both of them. I did not use "Copy File" because file X and Y aren't the same totally. There are other parts in the program where File X gets edited and File Y does not. I have a problem with "Scan Backlog" value that AI Read returns. When I write to one file only, scan backlog stays at zero and acquisition happens properly. When I include the code for the second file too, scan backlog increases. I removed that part alone to check whether it is because of writing to second file and it worked again. Could anyone let me know as to what I am doing wrong here? Thank you, Shankar Shankar K. Subramanian TSS ESG Northboro R&D Center Saint-Gobain
