How to use convertTDMS script and what is the most efficient file format to post-process data in MATLAB?

41 visualizzazioni (ultimi 30 giorni)
Iam working on a vehicle bench marking project and we are gathering GBs of data in .tdms format. I tried using the converTDMS function provided here : https://www.mathworks.com/matlabcentral/fileexchange/44206-converttdms-v10 . However, it throws an error related to a function date2str - "Unable to convert vector to string data". So i decided to convert .tdms to .csv or .xlsx or .xls or tab-delimited using a python script and then convert it to .mat format.
So my queries are as follows:
1.) Is there a solution to convertTDMS function ?
2.) Which file format would be most efficient considering each file to be 5 to 6 GB in size and have around 600 columns of data ? - .csv or .xlsx or .xls or tab-delimited
Any help would be appreciated.
Thanks

Risposte (1)

Sylvain
Sylvain il 12 Nov 2020
the function TDMS_getStruct(filename) works well if your files are small. However it tends to open the whole file.
you can use other functions to get information on the size of the file and extract the set of data you want, so that you do not open the ful file.

Categorie

Scopri di più su TDMS Format Files in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by