Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TDMS file will not properly import into Matlab

373 views
Skip to first unread message

Michael

unread,
Nov 9, 2010, 1:07:05 PM11/9/10
to
I am trying to load the contents of TDMS files into MATLAB for post-processing. I am not too picky on what approach I use to accomplish this, but I want it to be relatively streamlined for batch processing and I want it to work (that's the key)!. I have tried the NI supplied DLL with .m example files (see "Reading TDM/TDMS Files with The MathWorks, Inc. MATLAB® Software", http://zone.ni.com/devzone/cda/epd/p/id/5957). I can get it to work just fine with the supplied TDM file, but it does not correctly process my own TDMS file. I have also tried to process the binary TDMS file using an M-script from MATLAB Central (see "ConvertTDMS", http://www.mathworks.com/matlabcentral/fileexchange/28771). This file was written to process TDMS files based on the file format description from NI (see "TDMS File Format Internal Structure", http://zone.ni.com/devzone/cda/tut/p/id/5696). The M-script is my
preferred solution since it doesn't require a bunch of other files like the DLL approach does, but I am willing to take the approach that works best.

All I want to do is be able to read all the properties (names and values) and each group of channels (names and values) from a TDMS file into MATLAB. Is that too much to ask? Any help is greatly appreciated.

I have also posted this question on the NI forums where there is a link to a zip file that contains a more detailed problem description (with screenshots), the modified versions of the scripts I used, and an example TDMS file that doesn't get processed correctly. See the page http://forums.ni.com/t5/LabVIEW/TDMS-file-will-not-properly-import-into-Matlab/td-p/1305678 or the zip file directly at http://forums.ni.com/ni/attachments/ni/170/537446/1/TDMSproblems.zip.

Thanks,
Mike

0 new messages