Hello,
Are you trying to get the time elapsed since the program started for each time you read in data? Or are you trying to get the time imbetween each reading? I'm assuming you were using the Time to Match.vi example program, which is designed to return the amount of time it took the program to complete from when the start button was pressed. The way it works is that at the very beginning of the program, it passes the value of the counter into the while loop, getting an initial time. After most of the code is executed, the last thing it does is take the current value of the timer, and subtracts that from the original time it passed to the while loop.
I took a look at your code, and it looks like yours does the same thing... passes an initial time value to the loop, and then each iteration of the loop takes a new time and subtracts it from the original time. When you run this, you should have a gradually increasing time elapsed number. Is that what you are seeing?
john m
Applications Engineering