If you look at your measurement file, you have lost the X0 and dX values (X0=0, dX=1), so this is why you get the X axis going to 125 when you read the file back in.
Looking at your code, I believe the error is in youre wire vi here (see the red box):

You may not be able to see it, but there is a coercion dot where you wire the waveform into the Y input. This strips the waveform of all information except for the Y values, including your X0 and dX values.
My first question is do you need to replace the time value to begin with? I do not have a DAQ card to test, so you may not even need to do what you are doing in the red box. Assumign you do, then you need to do one of two things. You have an array of waveforms coming out of your mean/RMS VI. If there is more than one element in the array, then do the following:

If you only have one element in the array, then you can do the following:

As I said, I do not have a DAQ card available to me to see exactly what your data looks like. If you make these changes and they do not work, post the new measurement files. Or, perhaps someone with access to a DAQ card will chime in.
Message Edited by Matthew Kelton on
12-21-2007 02:00 AM