Hello,
I posted an example which does the following:
1. opens/creates a file
2. writes a start time to file and update the offset of the waveform graph inside the loop
3. writes the number of samples to be obtained to file
4. writes 100 samples five times to a waveform graph and to file
5. closes the file
6. opens the file
7. reads the start time from file and sets the x-axis offset of a waveform chart
8. reads the number of samples from file
9. uses that number of samples to read the data from file
10. displays all the data in a waveform chart and closes the file
Hopefully this helps. I realize the start time might not be precisely the time the loop starts iterating since the writes to file that are outside the loop take place in parallel to the writes inside the loop, but the idea of file writing and reading using scalars and arrays in the same file is hopefully clear. Notice that I do, by dataflow, use the start time to ensure that the loops don't start iterating ("acquiring data") until at least after the start time has been taken
😉 Also, notice that all the data is read at once while it is written in pieces; you don't have to read it all at once, but it shows you can. Of course, notice that the read part can be in a totally separate VI.
Repost if you have any other questions!
Thank you,
JLS