tdmswriteprop write error code for long digits

8 Ansichten (letzte 30 Tage)
Alex
Alex am 9 Apr. 2024
Bearbeitet: Jorbmus am 22 Jul. 2024
see below captures, the same code write TDMS properties, correct in 2022b, but error code in 2023b and 2024a version.
  3 Kommentare
Alex
Alex am 9 Apr. 2024
sure, below code can duplicate this issue.
%% verify TDMS
data=transpose([1:10]);
T=table;
T.Real=data;
fname=fullfile(pwd, [version('-release'), '.tdms']);
grpname='RawData';
tdmswrite(fname, T, ChannelGroupNames = grpname);
dts = datetime("now", 'Format', "yyyy-MM-dd HH:mm:ss");
dts=string(dts);
tdmswriteprop(fname, 'ConversionDate', dts);
disp("write over");
above code generated the following results in 2022b and 2024a:
Alex
Alex am 20 Mai 2024
Verschoben: Walter Roberson am 21 Jul. 2024
Is there any update on this issue? Thanks.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jorbmus
Jorbmus am 21 Jul. 2024
Bearbeitet: Jorbmus am 22 Jul. 2024
I encountered the same problem in 2024a and 2023b and found this post, then tried this in 2022b and worked fine
I reported a bug!
Edit: I got the following answer from Mathworks:
I am writing in reference to your Technical Support Case 07161458 regarding 'TDMS file write properties via tdmswriteprop() bug'. Thank you for reporting this issue. According to our internal documentation, there is a known bug in R2023b and R2024a which causes writing expressions longer than 15 characters to result in invalid characters. Our developers have already been informed about this bug and they are currently working on a bugfix for future releases of MATLAB. I will also nominate this bugfix for R2024a so our developers can consider shipping it in a future update.
In case of strings, the only workaround is avoiding strings longer than 15 characters. I apologize for this inconvenience.

Kategorien

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

Tags

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by