LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS to Matlab including Timestamp

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

0 Kudos
Message 1 of 4
(4,298 Views)

Hi,

 

did you try this?

 

http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2

 

 

Marco Brauner NIG

0 Kudos
Message 2 of 4
(4,253 Views)

Hi,

thanks for the response.

Yes I tried this one. It gives me alle data channels in MATLAB but I lose the timestamp.

 

chris

0 Kudos
Message 3 of 4
(4,237 Views)

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 http://zone.ni.com/devzone/cda/epd/p/id/5957

 

 

Thank you

 

 

0 Kudos
Message 4 of 4
(3,899 Views)