12-10-2008 07:01 AM - edited 12-10-2008 07:11 AM
Hello,
sorry but i have a simple question. I want to convert decimal number 0-10000 (like 10000 (decimal) to 27 and 10 (hex) or 1000 (decimal) to 03 and E8 (hex)) to two hex numbers and back. Iám searching for an easy way.
I tried different ways but i can`t find a solution.
greetings Schwede
Solved! Go to Solution.
12-10-2008 07:07 AM
12-10-2008 07:11 AM
Thankyou,
but i don`t want to have a string i need numbers to put them in a byte array.
greeting Schwede
12-10-2008 07:17 AM
12-10-2008 07:29 AM
12-10-2008 07:40 AM
Schwede,
please see attached VI. If you need different amount of Bytes, please modify the "Bytes" constant for the second for loop.
hope this helps,
Norbert
12-10-2008 07:52 AM - edited 12-10-2008 07:59 AM
12-10-2008 08:18 AM
Thankyou Norbert,
but the solution comes from Pnt (yours and t06afres is fine, too).
I don`t think about that the numbers are converted automatically. Now it works fine.
Schwede
12-10-2008 08:25 AM