MATLAB: Reading additional properties from TDMS file in Matlab

MATLABni tdmspropertiestdmsuser-defined

Hello everyone,
I want to address an issue with opening TDMS-files in Matlab that I have come across and have not found any solution in any forum. TDMS is a National Instruments format for data storage. They offer a TDM C DLL and an adapted C-header file here. You can also find a basic example code to be used in Matlab in the linked .zip-archive.
After installation of Microsoft SDK 7.1 data import and read out of the very basic properties ('Basiseigenschaften'), such as filename and channel name do work. Nether the less some experimental parameters are defined as group or channel properties ('Zusatzeigenschaften' in the attached image). Their Property name and Value can easily be read out with the TDMS Excel AddIn, the NI DIAdem Software or the DMC TDMS File Viewer. Later is pictured in the attached image.
A sample .tdms-file with the desired parameters is attached as .zip-file. The Matlab code, supplied by National Instruments, is also appended.
My goal would be to make these additional parameters readable and to store them in an array for further processing. I wonder if anyone has ever done this or can give some suggestions.
Any help is highly appreciated.
Best regards, Lukas

Best Answer

Hello Guillaime,
Thank you for the quick response. You are right. These two functions make the properties accessible. In the meanwhile I found a very well done solution in the National Instruments community forum: https://forums.ni.com/t5/LabVIEW/TDMS-file-will-not-properly-import-into-Matlab/td-p/1305678/page/2 For everyone concerning a similar task I would suggest to have a look at this script. It was also easily modifiable to fit my purpose.
Best regards, Lukas