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

28 次查看(过去 30 天)
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

回答(1 个)

Sylvain
Sylvain 2020-11-12
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.

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by