ConvertTDMS (v10)

Import or convert a LabView TDMS file into the MATLAB workspace or a mat file
Updated 16 Jun 2017

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Import or convert a LabView TDMS file (version 1.0 through 2.0). Interleaved and Non-Interleaved tdms files are supported.
These functions also work with tdms files that contain channels using the DAQmxRaw data typr (raw ADC data written by LV), if the files are translated first using the information found at:

Adding another submission so that Robert Seltzer who has provided a great deal of support for several years and is no longer actively working with TDMS files can hand back off development.

It was written in MATLAB 2010b. The original function was based on the work by Brad Humphreys of ZIN Technologies and Grant Lohsen & Jeff Sitterle of GTRI (versions 1 through 4 of this function). The Version 9 function (written by Philip Top), in addition to incorporating the various updates that were added to previous versions, can process files that have been "optimized" by LabView. Robert Seltzer of Borg Warner has provided a great deal of support and input. this version is the first using FileEx's new GitHub interface (thanks Mathworks!).

This function has been tested with a limited number of diverse TDMS files.

Cite As

Brad Humphreys (2024). ConvertTDMS (v10) (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on LabVIEW in Help Center and MATLAB Answers

Inspired by: ConvertTDMS (v9)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

Added error check per G. Lohsen for stopping when non-TDMS file is selected. replaced call to strsplit per Randy82. Added option to simpleConvertTdms to allow for group name not to be included in variable name.

Added information to the submission description about how to work with tdms files that have the LV DAQmxRaw data type in them.

Added help information on how to convert a file with DAQmxRaw data to the help documentation of convertTDMS.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.