LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display in hexadecimal a large integer ?

Hi,

I want to display in hexadecimal a large integer (3x16 bits).
Do you have a quick way to do this ?

Thanks - oz
0 Kudos
Message 1 of 4
(2,837 Views)
A hex representation is possible in a string.
Use formatinto string with each of the 16 bit integrs
below each other. You will see which one should be highest and lowest.
Byte swap might be necessary !
greetings from the Netherlands
0 Kudos
Message 2 of 4
(2,837 Views)
Hi,

you can split your 64-bits number to 2 32-bits numbers (MSB and LSB), convert each to HEX string and build new 64-bits HEX string.
Look attached example
0 Kudos
Message 3 of 4
(2,837 Views)
Thanks to all it works fine and fast ! - oz

PS: for curious... what if we are to display this arbitrary long
integer, given as a boolean array, in any base N notation ?
0 Kudos
Message 4 of 4
(2,837 Views)