Complete the following steps to use the TDM Streaming functions to read waveform data from a .tdms file.
- Place the TDMS Open function on the block diagram.
- Specify the file from which you want to read data by wiring the desired .tdms file path to the file path input.
- Right-click the operation input and select Create»Constant from the shortcut menu. On the ring control, select the open option.
- Place the TDMS Read function on the block diagram.
- Wire the tdms file out output of the TDMS Open function to the tdms file input of the TDMS Read function.
- Add a Waveform Graph to the front panel. On the block diagram, wire the data output of the TDMS Read function to the Waveform Graph.
- Place the TDMS Close function on the block diagram.
- Wire the tdms file out output of the TDMS Read function to the tdms file input of the TDMS Close function.
- Wire all error in and error out terminals on the block diagram.
- Run the VI. LabVIEW displays the waveform in a front panel graph.
You also can use the Read From Measurement File Express VI to read data from a .tdms file.
Refer to the labview\examples\file\plat-tdms.llb for examples of reading .tdms files.