Unable to open a tdms file with uneven chunks

12 views (last 30 days)
I have been using the tdms reader function for 4 years now and have not had an issue. I have created many functions that use it and have had little problem with it that I could not work around. Recently, I had a new resource that has been producing .tdms files for me to process and every time I try to run through the tdms reader I get the same error which reads as follows:
Error using TDMS_preprocessFile (line 450)
The remaining data doesn't split evently into chunks, estimated # of chunks: 5.000000e-01
Error in TDMS_readTDMSFile (line 226)
metaStruct = TDMS_preprocessFile(fid,tdmsFileName,paramsStruct);
Error in TDMS_getStruct (line 57)
[temp,metaStruct] = TDMS_readTDMSFile(filePath,readOptions{:});
I can foresee that the tdms file is being produced with some uneven completions of data, however when opeing up the tdms file via the excel importer, it does not have any problem opening the file. I'm in a bind in which my only work around is to save the file as an excel document and then import what I need manually. Has anyone come accross this and/or know how to fix this? I am looking for a work around solution in Matlab or some insight on how to prevent this at its source.

Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!