Example Code

Convert TDMS file to Text 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 will convert a TDMS file that was generated by LabVIEW or LabVIEW Signal Express into a text file.

Description:
LabVIEW Signal Express will do this for you in the configuration settings, but what if you want to do this in LabVIEW? That is where this VI will do the trick. This VI will return the channel names, their corresponding start times of acquisition, the time interval between samples and the waveform data.

Instructions:
To implement this example:

  1. Choose the file path of the attached Voltage.tdms file in the VI.
  2. Create a text file and give it a name.
  3. Choose the file path of the text file in the VI.
  4. Run the VI
  5. Open the text file and enjoy.

 

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
-

2017-11-02_14-20-22.jpg2017-11-02_14-20-31.jpg

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

National Instruments
Applications Engineer

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

Comments
ba_0101
Member
Member
on

Does this convert very large TDMS files (>300 MB) without running out of memory?