OK, you are doing all this way too complicated.
If data is appended to a file, you only need to parse it starting from the position where you finished reading in the last iteration. Basically, you need to open the file once and keep track on the file position in a shift register, then just read and parse the new data and append it to the existing three arrays you need. You are passing evergrowing strings out of a subVI where you need to parse the evergrowing string again for graphing (probably eqaully complicated!).
I reality, you never need to touch any data in the file more than once. Think about it! 🙂
I think you can do everything in the toplevel containing the graph with a few strokes of the mouse. 😄
- open file for reading and allow access by others
- start while loop. Initialize start position to zero in a shift register.
- read from start position and place end position into shift register.
- Use something similar to my code and built the three numeric data arrays in shift registers.
- graph the data as desired.
- wait one minute
- go to next iteration
- repeat
- close file and end program.
What is writing to the log file? Is it also a LabVIEW program?
Message Edited by altenbach on 09-14-2007 12:26 PM