ConvertTDMS (v9)

Import a LabView TDMS file into the MATLAB workspace
5.5K Downloads
Updated 17 May 2011

View License

Import a LabView TDMS file (version 1.1 or 1.2) as a structure in the MATLAB workspace with the option to save the data in a MAT file. 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. This function has been tested with a limited number of diverse TDMS files.

Cite As

Robert (2024). ConvertTDMS (v9) (https://www.mathworks.com/matlabcentral/fileexchange/28771-converttdms-v9), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Convert TDMS (v2)

Inspired: ConvertTDMS (v10)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.10.0.0

Fixes a couple of bugs that arose with NI-DAQmx 9.2.3.

1.8.0.0

Fixed some bugs with string input and file optimization with TDMS version 2 files.

1.7.0.0

Code restructured to decrease data loading time. Fixed the issue with reading "optimized" files.

1.6.0.0

Fixed an error with channels that contain no data. Fixed an error with capturing the properties of the Root object. Added 'GroupNames' as an optional output variable.

1.5.0.0

Fixed an error with the 'save' routine.

1.4.0.0

Improved robustness against channel/property names. Fixed an error in the time stamp conversion. Added 'Channel List' as an optional output parameter. Added a more detailed 'help' description.

1.3.0.0

Adds "error trapping" for group and channel names that contain characters that are not "A" through "Z", "a" through "z", 0 through 9 or underscore.

1.2.0.0

Adds capability to read files independent of the character encoding set in MATLAB. Also fixes error reading files containing objects with the same raw data in successive segments.

1.1.0.0

Fixes error encountered with some data files containing waveform data

1.0.0.0