02-16-2017 01:17 PM - edited 02-16-2017 01:18 PM
It seems that TDMS file uses utf8 instead of UTF16LE, error code = -2502 (String values are stored in TDMS files in utf8 unicode format.):
http://zone.ni.com/reference/en-XX/help/371361J-01/lverror/storage_error_codes/
In this case the null character limitation (end a string) is not an issue.
Before writing, convert UTF16LE to UTF8 and after reading, convert UTF8 to UTF16LE.
02-17-2017 02:40 AM
Hello J-M,
thank you very much; I think you found the reason of this behavior.
I downloaded the two files that you attached, but LabVIEW asks me for "Unicode Utilities.lvlib" and I don't know where to find this library.
Where did you get "Unicode Utilities.lvlib" and "String Conversion.lvlib" that you attached?
Did you write them by yourself?
02-17-2017 09:12 AM
It is a part of my Unicode Utilities.lvlib library.
Try those ones.