From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Writing Units and Description to a TDMS File

Code and Documents

Attachment

Overview


This program is an example of TDMS file manipulation.

The TDM data model offers three levels of hierarchy: root, group, and channel. Each level accepts an unlimited number of user-defined attributes, which makes the files search-ready.
This example demonstrates how to write units and/or description to the channel level using the TDMS Set Properties function.

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

Contributors