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

Writing Waveform Data to 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 write waveform data to a .tdms file.

  1. Place the TDMS Open function on the block diagram.
  2. Specify the file to which you want to write data by wiring the .tdms file you want to write 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 create or replace option.
  4. Place the TDMS Write 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 Write function.
  6. Place the Sine Waveform VI, or the data you want to write to the .tdms file, on the block diagram.
  7. Wire the output of the Sine Waveform VI to the data input of the TDMS Write function.
  8. Place the TDMS Close function on the block diagram.
  9. Wire the tdms file out output of the TDMS Write function to the tdms file input of the TDMS Close function.
  10. Wire all error in and error out terminals on the block diagram.
  11. Run the VI. The VI writes the data from the Sine Waveform VI to the file you specified in the file path input of the TDMS Open function.

After you write to a file, you can use the TDM Streaming functions to read the file.

You also can use the Write To Measurement File Express VI to write data to 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 writing .tdms files.


Resources


 

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