ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(4,843 Views)
Solution
Accepted by 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
(4,838 Views)

Thanks that worked.

0 Kudos
Message 3 of 3
(4,831 Views)