Filter löschen
Filter löschen

Unrecognized function or variable 'mexTDMS'

63 Ansichten (letzte 30 Tage)
Natalie
Natalie am 26 Apr. 2023
Beantwortet: Walter Roberson am 27 Apr. 2023
When I am trying to import my TDMS file I am receiving the error "Unrecognized function or variable 'mexTDMS'". I have downloaded the communications toolbox so I should be able to use the function shown below. The file ZnO.tdms is in the same pathway as MatLab. I am working on a Mac so I am not sure if that is part of the issue? Does anyone have any helpful tips?
>> data = tdmsread("ZnO.tdms");
Unrecognized function or variable 'mexTDMS'.

Antworten (2)

Walter Roberson
Walter Roberson am 27 Apr. 2023
The toolbox you are using is not supported on Silicon Mac, at least not in the release you are using. (I do not know if it is supported in the Open Beta)

LeoAiE
LeoAiE am 26 Apr. 2023
Hi,
It seems like you are using a custom TDMS reading function that requires 'mexTDMS' and it is not found in your MATLAB environment. The error message you are receiving indicates that the 'mexTDMS' function or variable is not recognized, which means it is not available in the current path.
If you have downloaded a custom TDMS reader, make sure that the folder containing 'mexTDMS' is added to your MATLAB path. You can add the folder to the path by using the addpath function:
addpath('path/to/mexTDMS/folder');
Alternatively, you can add the folder to the MATLAB path using the 'Set Path' dialog in MATLAB by going to the 'Home' tab, then 'Environment' section, and clicking on 'Set Path'. Add the folder containing 'mexTDMS' and save the path.
If you are still having issues or would like to try another method, you can use the "TDMS Reader for MATLAB" File Exchange contribution, which does not require the Communications Toolbox:
  1. Download the TDMS Reader for MATLAB from the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/44206-tdms-reader-for-matlab
  2. Extract the contents of the downloaded ZIP file to a folder.
  3. Add the folder containing the extracted files to your MATLAB path as described above.
  4. Use the TDMS_readTDMSFile function provided by the TDMS Reader to read your TDMS file:
TDMS_data = TDMS_readTDMSFile("ZnO.tdms");
Hope this helps!

Kategorien

Mehr zu TDMS Format Files finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by