Example Code

Write Units and Descriptions to TDMS File

Code and Documents

Attachment

Overview

This example shows how to write Units and Descriptions to a TDMS file and uses simulated waveform data to show the TDMS functionality. 

Description

This code starts by prompting the user to enter path for the TDMS file. The code then opens a TDMS file, writes the Group and Channel names to the TDMS file, and writes simulated waveform data to the TDMS file. It then writes the Units and Description of the TMDS file using TDMS Set Properties, reads back the TDMS file data, and closes the TDMS file.

Hardware and Software Requirements

LabVIEW NXG 1.0 (or compatible)

Steps to Implement or Execute Code

1. Run this VI
2. Select a place to save your TDMS File
3. Verify with TDMS Read that the TDMS File Data matches the
simulated data. 

Additional Information or References

Thanks,

Rita Prather
Software Product Manager
rita.prather@ni.com
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors