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,453 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,445 Views)

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

0 Kudos
Message 3 of 5
(4,440 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,431 Views)

Thanks!

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