LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String equal?

Solved!
Go to solution

A string is just a sequence of bytes (or to confuse you even more 16 bit words, if you use 16bit Unicode representation, which LabVIEW doesn't use). As such a string is really just an array of bytes where each byte can have a value between 0 and 255. Now there is the American Standard Code for Information Interchange, which simply describes a mapping between those codes between 0 and 127 that represent a specific character.

 

If you display in LabVIEW a string as normal string, LabVIEW will use basically this mapping table to display a character for each of the byte codes. If you select "Display \ Backslash Codes, LabVIEW will replace the so called non printable characters such as carraige return, linefeed and tab, with a special code sequence starting with a backslash. And if you select hexadecimal format, LabVIEW will print for each byte a two digit hexadecimal string, that represents the byte value in hexadecimal format. Last but not least you can even select password display and LabVIEW will print for every byte a star *.

 

So while the data is always the same it will display very different depending on the display format you select. On the other hand even if the string looks the same, it will represent VERY different byte arrays, if the display format isn't the same.

 

So far most answers tried to tell you this in more or less words, and you simply keep insisting that what LabVIEW does must be wrong because it doesn't match your skewed expectation.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 11 of 12
(833 Views)

Thanks again to all tree, to finally help me to clear this; Now I know what is behinds these :);

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 12 of 12
(818 Views)