Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Reading Waveform Data from a File Using TDM Streaming Functions

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Complete the following steps to use the TDM Streaming functions to read waveform data from a .tdms file.

  1. Place the TDMS Open function on the block diagram.
  2. Specify the file from which you want to read data by wiring the desired .tdms file path to the file path input.
  3. Right-click the operation input and select Create»Constant from the shortcut menu. On the ring control, select the open option.
  4. Place the TDMS Read function on the block diagram.
  5. Wire the tdms file out output of the TDMS Open function to the tdms file input of the TDMS Read function.
  6. 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.
  7. Place the TDMS Close function on the block diagram.
  8. Wire the tdms file out output of the TDMS Read function to the tdms file input of the TDMS Close function.
  9. Wire all error in and error out terminals on the block diagram.
  10. 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.

Tip  Use the TDMS File Viewer VI to view .tdms file data.

Refer to the labview\examples\file\plat-tdms.llb for examples of reading .tdms files.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit