LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to increment Hexadecimal number

Solved!
Go to solution

Hello,

 

I have a hexadecimal string with value as 0080F401F9AE. I need to convert this string value as hexadecimal number and incremennt by one. So i should get 0080F401F9AF as the answer in the output string value. Please can I know how to implement this increment and also conversion.

 

Thank you.

0 Kudos
Message 1 of 3
(5,027 Views)
Solution
Accepted by topic author hema

The String palette has numerous string to number conversion functions. In your case you'd want the Hexadecimal String to Number function. Since you are dealing with a 64-bit value you want to make sure to wire a constant that is U64 to set the number's bit length. Then you can just add 1 to the number.

 

Message 2 of 3
(5,019 Views)

Like this?

 

(see attached)

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(5,015 Views)