Error using the tdmsinfo() function

16 ビュー (過去 30 日間)
Gregor Schlaucher
Gregor Schlaucher 2022 年 3 月 24 日
コメント済み: Daniel 2023 年 12 月 6 日
In my project I need to open and process TDMS files (from LabView) with Matlab (R2022a). Therefore I want to use the new functions from the Data Acquisition Tool Box. But at the very start I get error messages which I do not understand. The code is very short and looks like this:
clc
clear all
fileName = "OR_measurement_1.tdms";
info = tdmsinfo(fileName);
When I try to run the code I get this error message:
Error using TDMS_to_Mat
Channel Group Property name does not exist.
This also happens when I use 'tdmsread(fileName)'.
I just want to access the data and process it.
How can I solve this problem?
  2 件のコメント
Stephen Price
Stephen Price 2022 年 4 月 29 日
Hi Gregor, I am experiencing the same issue for TDMS files output by LabView 2017, but it runs fine for files from LabView 2019 for me. Out of curiousity, what version of LabView are you using?
Gregor Schlaucher
Gregor Schlaucher 2022 年 5 月 2 日
Hi Stephen,
I used LabView 2020. Anyway I solved the problem with a colleague. It turned out that these MatLab commands (tdmsread, tdmsinfo) expect that all groups have a real name. If you don't name your groups, they are 'untitled', which MatLab doesn't like. When I renamed the groups to 'GroupName' the commands worked perfectly.

サインインしてコメントする。

採用された回答

Gregor Schlaucher
Gregor Schlaucher 2022 年 5 月 2 日
It turned out that these MatLab commands (tdmsread, tdmsinfo) expect that all groups have a real name. If you don't name your groups, they are 'untitled', which MatLab doesn't like. When I renamed the groups to 'GroupName' the commands worked perfectly.
  3 件のコメント
Gregor Schlaucher
Gregor Schlaucher 2023 年 5 月 2 日
There is a group which contains several channels for the time stamp and channels for force values and torque values (calibrated and saved in N and Nm).
I used a Labview program which automatically names the group 'Group 1'. And the new Labview program gives names to all the groups and channels when the files are created.
Daniel
Daniel 2023 年 12 月 6 日
I'm running into the same issue. I'm using Labview's DAQ Assistant and writting the data to a TDMS file.
When I try and open the tdms file in matlab I get the same error:
"Channel Group Property name does not exist."
When I open the tdms file in excel viewer. I see the Group has a name "Temperatrue"
and the Group has 1 channel,
Channel: "Amplitude"
I can't find what matlab is having issues with.
Can you elaborate on how you fixed the problem?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTDMS Format Files についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by