04-09-2008 08:51 AM
04-09-2008 09:02 AM
When you save the data, you are not saving any timing information. You just have the raw data. In your acquisition, you are just assuming a default sample rate which is maybe not such a good idea either. If you want to stick with assumptions, then when you read the data from the file, create a waveform data type and specify a dt of 1/sample rate before wiring it to the Spectral Measurements function.
For better code, you might want to look at the shipping examples where logged binary data has a header created that includes the sample rate.