Hi Drew,
I took a look at your program and was able to understand why you are reading the same values everytime. The first time the for loop runs, you read values from the RMSs into the case structure into the for loop. The for loop concatenate the values and enters into a case structure where it gets written to a file. The next time the for loop runs, it is still using the old values from the RMS because it is not reading the RMSs again to get new values. It uses the same values as before and goes through the process again. You have used a used a shift register to account for the new values but you are not reading new values itself. I hope this makes sense. To fix the issue, you will need to read you RMS inside a for/while loop, so that everytime the loop runs, you get a new value (simulated or otherwise).
I was not able to run your program because I was getting an error (20309) but the above paragraph explains what the problem is.
I hope this helps!
Warm regards,
Karunya R
National Instruments
Applications Engineer