# LabVIEW

cancel
Showing results for
Did you mean:

## how to cnovert an array of decimal numbers to a hexa decimal number

if i have a numbers like 163, 150,143 like this a three numbers how can I join them and form  a hexa decimal number. please kindly reply

Message 1 of 10
(2,565 Views)

## Re: how to convert an array of decimal numbers to a hexa decimal number

please explain "join" in this context. What is your expected result for the numbers given (\$A3, \$96, \$8F)?

There's a function "Number To Hex String" in the string->conversion palette...

Message 2 of 10
(2,557 Views)

## Re: how to cnovert an array of decimal numbers to a hexa decimal number

It's not clear to me how you convert the decimal into hex. Can you be more precise?

Here's my guess in the dark: Message 3 of 10
(2,555 Views)

## Re: how to cnovert an array of decimal numbers to a hexa decimal number

not like this. In my motor  encoder the encoder will give the position as three decimal numbers of byte length one. so if it gives 150 , 160, 170. Then how can I get the original decimal number which it meant through these numbers. Please kindly help me.

Message 4 of 10
(2,525 Views)

## Re: how to cnovert an array of decimal numbers to a hexa decimal number

I repeat my question from message #2:

What is your expected result for the numbers given (\$A3, \$96, \$8F)?

Message 5 of 10
(2,512 Views)

## Re: how to cnovert an array of decimal numbers to a hexa decimal number

i need it as a single number not like parts with commas as a single 64 bit decimal. Yoo understand I think

Message 6 of 10
(2,504 Views)

## Re: how to convert an array of decimal numbers to a hexadecimal number

do you need your number as "163150143" ("single number not like parts with comma") or (as demonstrated above) as "10720911" after joining the bytes?

Yoo understand I think

Nope, you still doesn't give the expected result!

Again: WHAT IS THE EXPECTED RESULT?

Message 7 of 10
(2,497 Views)

## Re: how to cnovert an array of decimal numbers to a hexa decimal number

Hi!

The example I provided does exactly what you need, then.

it joins 3  single byte numbers into a 32 bits integer (adding a 0 high byte).

The join order may be wrong but can easily be fixed....

Regards,

Marco

Message 8 of 10
(2,496 Views)

## Re: how to cnovert an array of decimal numbers to a hexa decimal number

I need

as like this

0

195

50

hexa decimal numbers corresponds to 50,000  the decimal number.

I need such a conversion. How we can do it

Message 9 of 10
(2,487 Views)

## Re: how to convert an array of decimal numbers to a hexadecimal number 