LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Byte Array To String Function question

Hi all,

any idea why the function isn't displaying the input correctly?

Thanks

0 Kudos
Message 1 of 7
(1,529 Views)

Probably because what you think is correct does not correspond to the actual function.

Very few people here have LV2013 installed. If you backsave your vi to an old version (say LV2017) you could get more help.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 7
(1,512 Views)

Hi Lucky,

 

Could you post your VI saved for LV2021, most people here on the forum don't have version 2023 installed.

Go to File -> Save for Previous Version -> 21.0

 

Regards,

Raphaël.

0 Kudos
Message 3 of 7
(1,508 Views)

I assume you want lower case hex encoding? Changing the display format to "hex" in LabVIEW will use uppercase letters. Note that your to lower case function only affect one value: DC corresponds to "Latin capital letter U with diaeresis" and got turned into FC, "Latin small letter u with diaeresis"

 

Is this what you want?

 

snip.png

0 Kudos
Message 4 of 7
(1,502 Views)

Old version of the program.

0 Kudos
Message 5 of 7
(1,371 Views)

Hi Lucky,

 

You are confusing a string displayed in its raw hexadecimal form with a string formatted to hexadecimal (ASCII) characters.

 

The first one is simply a way of looking at the raw values of the bytes in memory, while the second one is a formatting of the byte values to a restrained subset of ASCII characters (only 0-9 and A-F).

 

Have a look at this:

raphschru_1-1696237536704.png

 

The first string is the exact same as the input, but display in hexadecimal (display style 'x').

In the second case, each byte is formatted to hexadecimal characters, then concatenated and finally turned to lowercase.

 

Regards,

Raphaël.

Message 6 of 7
(1,361 Views)

If you put the indicator BEFORE the function To lower case it will show correctly. 

 

LVNinja_0-1696269334189.png

 

0 Kudos
Message 7 of 7
(1,325 Views)