Example Code

Write Different Portions of One Waveform to a TDMS File in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI exemplifies how to differentiate different portions of one waveform of data when writing it to a TDMS file.

 

Description

Sometimes it may be desired to differentiate different portions of one waveform of data when writing it to a TDMS file. This method assumes that the data has been divided such that each index of an array contains one portion of the waveform. It then changes the name of the channel each iteration to differentiate each portion of the waveform in the TDMS file.

 

There is a relevant KnowledgeBase article here: KnowledgeBase 4TPGCIV7: Writing Different Parts of One Waveform to a TDMS File.

 

Requirements

LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code
1. Run the VI.
2. Review the TDMS file on the TDMS File Viewer Window.

 

Additional Information or References

 Snippet 3720.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Jeff | LabVIEW Software Engineer

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