08-13-2009 02:17 AM
Hi everyone,
I read the others discussion about the conversion of tdms files to MATLAB and I tried both scripts published here.
I measure the signal with the LabVIEW DAQ express vi function and writing the waveform into tdms (Data+Timestamp if I didn't make any mistake). Reading the file with the TDMS monitor displays the timestamp correctly but if using the script to convert the file to MATLAB leaves me with only the data but with no timestamp.
Did somebody came up with the same problem? Can somebody help me?
regards
Chris
08-17-2009
11:01 AM
- last edited on
03-03-2026
09:53 AM
by
Content Cleaner
Hi,
did you try this?
http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2
Marco Brauner NIG
08-18-2009 03:26 AM
Hi,
thanks for the response.
Yes I tried this one. It gives me alle data channels in MATLAB but I lose the timestamp.
chris
03-29-2011
05:31 PM
- last edited on
03-03-2026
09:53 AM
by
Content Cleaner
Bump!
I have the same problem. It is very important that I be able to read my .tdms files (that verifiably contain (as seen from Labview) the right timestamp) into Matlab along with the timestamp. I would like to know if there has been any progress on the issue since 2009.
I'm using Matlab vR2007a
I get the error -6214 on line "[err,dummyVar,year,month,day,hour,minute,second,msecond,wkday]=calllib(libname,'DDC_GetFilePropertyTimestampComponents',file,DDC_FILE_DATETIME,yearIn,monthIn,dayIn,hourIn,minuteIn,secondIn,msecondIn,wkdayIn);"
in file ReadFile.m
I downloaded matlab_tdm_example_sp2010.zip from https://forums.ni.com/t5/Example-Code/Reading-TDM-TDMS-Files-with-The-MathWorks-Inc-MATLAB-Software/...
Thank you