TDMS Reader

Version 2.6 (46.7 KB) by Jim Hokanson
Read TDMS files v1 & v2 without DLL
38.2K Downloads
Updated 11 Nov 2020

View License

Reads TDMS files into Matlab.

Simplest usage is:
data = TDMS_getStruct(filename.tdms);

Advantages:
- supports reading v2 files
- doesn't require the NI DLL, thus it doesn't require 32bit windows
- supports interleaved data
- allows only reading names & properties to get a quick feel for what is in the file
- allows reading specific subsets of the data for limited memory usage

For subset retrieval examples see:
https://gist.github.com/JimHokanson/dfecf21bde0bb7f2484adaf3c646b91a

Cite As

Jim Hokanson (2024). TDMS Reader (https://www.mathworks.com/matlabcentral/fileexchange/30023-tdms-reader), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: TDMS file merge and reader

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.6

- added complex data reading support
- bug fix for skipping channels where data are strings
- fixed issue where first segment didn't define objects
- lots of documentation updates

1.13.0.0

Added simple usage example to description

1.12.0.0

Just added a link to the description

1.11.0.0

Bug fix (potentially silent bug), see version notes file.

1.10.0.0

Fixed some bugs with interleaved data, as well as a bug in reading timestamp data (not properties) which failed with dates prior to 1904.

1.9.0.0

Fixed a bug in which an error check I had in place was incorrectly being thrown.
Fixed parsing of object names with ' and / characters.

Also allows for only reading .tdms_index files (for debugging)

1.8.0.0

2.2 Update:
Improved speed and specificity with regard to subset handling

1.7.0.0

I was a bit quick with the last update (v2.0). It had some bugs with respect to parsing subsets of the data.

1.4.0.0

The main update to version 2 is the ability to retrieve a subset of the data from channels. In addition I've added some extra wrappers to handle data retrieval.

1.3.0.0

Ver. 1.2 - I had an incorrect minus sign when reading the timestamp property which yielded an invalid year. Data timestamp reads were correct and previously tested :)
Thanks to Ed Zechmann for pointing out the problem! Added extra conv. script v3

1.2.0.0

Fixed a major bug with reading unicode. Other small bug fixes and improvements can be seen in TDMS_VERSION_INFO.

1.1.0.0

Updated description

1.0.0.0