Example Code

Extract TDMS Subset and Write to New File

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 takes a TDMS file, extracts a specified subset of data, and writes it to a new TDMS file.

Description:
This example can be very useful if the file is too large to manage or if only a certain portion of the file is desired, given the file data is in the TDMS format

Instructions:
To implement this example:

  1. Specify the file path for the original TDMS file to split
  2. Specify the file path for the new TDMS file
  3. Set the starting point and duration of the data to be extracted
    Note: The default setting is to use the number of samples. The VI can be modified to extract a certain time of data by    changing the constant on the block diagram from "Samples" to "Relative Time"
  4. Run the VI

 

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

bd.pngfp.PNG

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

Jake H | Product Manager

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