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

32 vues (au cours des 30 derniers jours)
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

Réponses (1)

Sylvain
Sylvain le 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.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by