I am using a stacked sequence and am trying to insert a counter so that when I run the program continuously, the spreadsheet that the file is written to automatically indexs the data correctly. The way I currently have it is that I initialize an array at element 0 and run the program once.
But when I try to run the program on the continuous mode, the data always writes to element 0. Is there any way to put in a variable and have it count how many time the program has repeated in continuous mode so that the data is written to the various elements and does not overwrite previously recorded data.
Any help would be appreciated.
I would recommend you take a couple of tutorials before you start programming in LabVIEW. What you need is a while loop whose iterative count you can use to index an array. Never use the Run Continuously button when you are running your application with LabVIEW unless you are debugging your application.
Go through the following document: