I've got a VI that opens an OPC connection and reads in a 1-D array of 560 measurements. Another connection reads in a scan number.
I have both connections in a while loop checking for updates every 100 milliseconds.
What I want to do is read in the array and save it to the first column in a spreadsheet. Then, when the scan number goes up, I want to read in the next array of measurements and append it to the second column of my spreadsheet. (I guess I could use the 'Write to Spreadsheet' example)
I foresee a problem because the scan number and the 1-D array of measurements change at the exact same time. If I try to append the 1-D array to the txt file once the scan number changes, I will already be looking at new data.
Eventually, when the scan number resets to zero, I'll want to save the file and start the process over, while LabVIEW analyzes the spreadsheet I just created.
It doesn't seem hard at all, I'm just trying to get the timing right. The fact that it's a continuous process has me a little confused. Any suggestions?
Thanks in advance!