Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
18 ratings:
 2.22 out of 5     Rate this Document

Reading TDM/TDMS Files with The MathWorks, Inc. MATLAB® Software

Primary Software: DIAdem
Primary Software Version: 10.2
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
Can I read TDM or TDMS files with The MathWorks, Inc. MATLAB® software?

Solution:
The attached ZIP file 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.


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



Related Links:
KnowledgeBase 42AANPH0:  Reading and Writing TDM/TDMS Files
The MathWorks - MATLAB and Simulink for Technical Computing
Developer Zone Tutorial:  DataPlugins:  Supported Data Formats (ni.com/dataplugins)

Attachments:


MATLAB TDM Example.zip


Report Date: 05/22/2007
Last Updated: 05/13/2008
Document ID: 49L3K6FN

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit