From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,443 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,438 Views)

Thanks that worked.

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