04-17-2008 08:11 PM
04-21-2008 01:03 PM
Are you trying to read in values to C?
LabVIEW has a Get and Set Properties VI as well as a TDMS File Viewer VI that may help.
Or are you looking to actually decode manually (via C or some other language) the hex code and be able to interpret the proper time?
04-21-2008 01:26 PM
04-21-2008 01:40 PM
Matt, Thanks! I verified this works. I'll take a look at the milliseconds.
Dave , I have a .tdms to .mat (MATLAB) file translator written. This by the way was VERY frustrating as the documentation on the page above is very vague/ambious and I hope does not represent internal documentation standards at NI. Why does diadem have a .mat file conversion but LabView does not?
04-22-2008 11:40 AM
04-22-2008 06:04 PM
I don't know if you've checked into using a data plugin (you may be writing your own), but we do have one available for .MAT files on our website: DataPlugins: Supported Data Formats.
Additional resources that you may find helpful would include Reading and Writing TDM/TDMS Files that contains links to a number of guides regarding the TDMS file format as well as interfacing with third-party data files. There are also two examples found here: Loading Data with a DataPlugin Within LabVIEW that illustrate how to read data into LabVIEW using a data plugin.
04-22-2008 10:20 PM
04-23-2008 07:43 AM
04-23-2008 09:34 AM
04-23-2008 01:28 PM
A copy of the MATLAB conversion function is attached. On a first glance, it looks overly complicated but was done so to maximize speed (we convert 100MB tdms files in about 2 minutes). I would love to get feedback from other users on it's compatibilty with other TDMS structures.
(Had to change the file extention to .txt as .m was not allowed - needs to be changed back)
Thanks again to Matthew K on decoding the timestamp.