tdmswriteprop writing garbage names
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to shorten the channel names of a tdms file so that I can load it in matlab. However, the renaming fails after a few loops with error 6617 (file already contains an object with that name). When I reload the tdms info, I find that the new channel names are just a bunch of garbage characters:

If try to change the name of a renamed channel, I get an 'invalid channel' error:

This appears to be caused by a bug in how the tdmswriteprop function escapes special characters. For some reason, placing a space before the special character breaks it. For example: changing a channel name to "test/test/test" works fine, but "test /test /test" produces garbage characters.
1 comentario
Nithin
el 23 de Abr. de 2025
I tried to reproduce this at my end and it works fine for me.
Could you please attach the files you are using or any steps to reproduce this issue?
Respuestas (1)
Shaunak
el 12 de Mayo de 2025
Hi Paul,
I understand that you are facing some issues while writing property values to a TDMS file using tdmswriteprop in MATLAB.
There is a known issue in MATLAB R2023b and R2024a where writing property values longer than 15 characters to a TDMS file using tdmswriteprop can result in invalid or corrupted characters. This can cause problems when you later try to read or update those properties.
This issue has been discussed in the MATLAB Answers thread below, kindly refer to this for more information:
Hope this helps!
0 comentarios
Ver también
Categorías
Más información sobre Entering Commands en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!