LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS and null strin char

Solved!
Go to solution

Why is it not possible to write a string that contains null characters (\00) in a TDMS property?

 

(this limitation is documented in the help)

 

 

I've just spent half a day to spot the issue and now I found a work around, but I'd like to know why such a limitation 😮

Anyone knows?

 

Edit :

Side question, if you do try to write a property string that contains a null strin char, should you receive an error, or a warning, or nothing?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 1 of 3
(2,377 Views)
Solution
Accepted by topic author TiTou

Hello,

 

the null character (\00) is a standard way of marking the end of a string. If you put a null character in the middle of a string, many programs will consider the string finished as soon as the character is reached and ignore the rest of the string.

Because of this behaviour, it isn't an error and so shouldn't throw any errors if you try to do it.

 

Best regards,

Joseph Tagg

Message 2 of 3
(2,350 Views)

Right, that answers my question.

 

Thanks Joseph!

 

I'll start a new thread to discuss more general issues I have with TDMS properties.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 3 of 3
(2,332 Views)