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
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis >
- MATLAB > External Language Interfaces > Other languages > LabVIEW >
- MATLAB > Language Fundamentals > Data Types > Characters and Strings > String Parsing >
Tags
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
v2p6
v2p6/private
v2p6/tdmsSubfunctions
Version | Published | Release Notes | |
---|---|---|---|
2.6 | - added complex data reading support
|
||
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.
Also allows for only reading .tdms_index files (for debugging) |
||
1.8.0.0 | 2.2 Update:
|
||
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 :)
|
||
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 |