From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Concatenate Hex Strings

Solved!
Go to solution

In the attached example VI is there a way to have the 1B be represented as Hex instead of ASCii after the concatenation in the output string? Why does Concatenate Strings function automatically convert the 1B to ASCII?

0 Kudos
Message 1 of 5
(4,436 Views)
Solution
Accepted by topic author aaronb
Rather than converting the number to a string of ASCII characters, you need to change the representation of the byte to a string. If you will always want only one byte, use the U8 datatype in place of I32. Convert to an array of U8. Convert to String. Concatenate. Lynn
Message 2 of 5
(4,428 Views)

OK I think I understand. Do you mean like the attached version?

0 Kudos
Message 3 of 5
(4,423 Views)

Yes. That should work. 

 

If you are not clear on the differences, keep at it until you are sure you understand string displays, ASCII characters and bytes.

 

Lynn

0 Kudos
Message 4 of 5
(4,414 Views)

Thanks!

0 Kudos
Message 5 of 5
(4,411 Views)