02-03-2013 09:54 PM
I am acquiring temperature data with an NI 9213 Thermocouple Reader and DAQ Assistant within a While loop. I need to compare the temperature from one channel in a loop iteration with the temperture from the same channel in the previous iteration. The data collected in each iteration is delivered to both a Chart and a data storage file. I know how to obtain the temperature from the data array in the present iteration, but don't know how to obtain the temperature from the previous iteration, except perhaps by reading the whole file into an array, determining the size of the array, and interrogating the last entries. That seems a bit silly for every loop iteration, and perhaps even embarrassing. Any suggestions?
Solved! Go to Solution.
02-03-2013 10:01 PM
Put the data into a shift register. The left terminal of the shift register will have the data from the previous iteration.
Lynn
02-03-2013 10:15 PM
Thanks for your rapid reply and solution, Lynn.
02-03-2013 10:16 PM
02-04-2013 10:04 AM
Thanks to you also, Ranjeet. I am hoping that, after a few more decades of learning to program in Labview, my questions will become more sophisticated. Cheers.