LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Hex String to Signed Int

Solved!
Go to solution

Hey,

 

I was wondering if there was a way to convert a string to integer. Now here's the problem, the string is actually hex characters so in normal view I see my hex characters. I attached a screenshot of my normal string indicator. What I want to do is take those 4 characters and make a signed 32 bit integer. Thoughts?

0 Kudos
Message 1 of 3
(3,454 Views)
Solution
Accepted by topic author Gus67

You can do it with the Scan from String function:

 

Untitled.png

 

This would output "27".

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Message 2 of 3
(3,449 Views)

Thanks that worked.

0 Kudos
Message 3 of 3
(3,442 Views)