LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unicode characters in TDMS file

Solved!
Go to solution

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.

Download All
Message 11 of 13
(955 Views)

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?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 12 of 13
(940 Views)
Solution
Accepted by topic author vix

It is a part of my Unicode Utilities.lvlib library.

 

Try those ones.

Download All
Message 13 of 13
(931 Views)