MATLAB®-TDM-Example User Guide

Publish Date: Aug 25, 2016 | 37 Ratings | 1.41 out of 5 | Print

This application note answers the question how to read TDM or TDMS files with The MathWorks, INC. MATLAB® Software.

To download and install the Example go to the MATLAB®-TDM-Example Download page >>

The ZIP file there contains an example that shows how to read TDM and TDMS files from within the MATLAB® software environment. It consists of an extract of the TDM C DLL and an adapted C-header file (nilibddc_m.h) to be used in conjunction with the MATLAB® software. Refer to the doc folder for more information about the functions.

If you copy the TDM dll and the header file into "C:\test\", you must specify the location in your m-script like this:

examplePath = 'C:\test';
hfile = [examplePath '\nilibddc_m.h'];
loadlibrary([examplePath '\nilibddc'], hfile);

Keep in mind that this provides only the capability to read TDM/TDMS files with the MATLAB® software environment and that the example has been tested with MATLAB® Versions R2007a, R2007b, and R2008a.  It is expected that the example will work with earlier versions as well.

Related Links:

MATLAB®-TDM-Example Download page
KnowledgeBase 42AANPH0:  Reading and Writing TDM/TDMS Files
The MathWorks - MATLAB and Simulink for Technical Computing
Developer Zone Tutorial:  DataPlugins:  Supported Data Formats (

MATLAB® is a registered trademark of The MathWorks, Inc.

Back to Top

Bookmark & Share


Rate this document

Answered Your Question?
Yes No