08-31-2005 01:19 PM
08-31-2005 01:59 PM
There doesn't exist a single VI but if I understand you correctly, it should all be doable.
You can read a saved file with a couple of different methods. One way is the Read From Spreadsheet, Another is Read Waveform From File. There are other possibilities and it all depends on exactly how the original waveform was saved and what program did the saving. Describe in greater detail exactly what's in the file or post an example.
Once you've read a waveform, it's simply a matter of using a graph to display it. If you create a waveform datatype from the file, then that includes the timing information. Since the original data on disk is not continuous, but already sampled, I'm not sure what you mean. There is a function called Resample Waveform on the Analyze>Waveform Conditioning palette. You specify a new t0, dt, and interpolation. Showing a continuous or non-continuous waveform on a graph is simply a matter of selecting the interpolation. You can right click on the plot legend for the specific plot and select the style.
Data acquisition from a DAQ board or GPIB device is a common task. For DAQ, I would recomend that you look at the shipping examples. Open Help>Find Examples and from the browse tab, expand the Hardware Input and Output>DAQmx>Analog Measurements to get you started.