LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert from hexadecimal to decimal

Solved!
Go to solution

I've recently started working with hexadecimal data. I want to convert a 2 byte hexadecimal string to a decimal number, but the VI which I expect to do that is not quite working out. You can see it attached for an example of what I mean. Any suggestions?

0 Kudos
Message 1 of 11
(7,020 Views)
Solution
Accepted by topic author greggers89

Hi greg,

 

this has been asked so many times before: You have to be sure about the representation of your data.

 

Easiest would be a typecast:

check.png (numeric constant is defined as U16!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 11
(7,010 Views)

Thank you so so much!

0 Kudos
Message 3 of 11
(7,003 Views)

Hey!! Could somebody help me?? I have an labview 2009 and it would be nice if somebody could convert these files (version 4.0.1)  for me! Thx

0 Kudos
Message 4 of 11
(6,979 Views)

ohh i just forgot the file 🙂 

0 Kudos
Message 5 of 11
(6,976 Views)

A better place for your post is the Version Conversion board.

0 Kudos
Message 6 of 11
(6,971 Views)

Sorry and thx for the tip

0 Kudos
Message 7 of 11
(6,966 Views)

I need to convert a hexadecimal output to a decimal number like 200 for C8. Using hexa to decimal is not working for this purpose. So kindly please help

0 Kudos
Message 8 of 11
(6,783 Views)

What are your data types (U8?  String?  I32?) that you are converting from and to?  And be very specific about what you have in your example.  Is "C8" two ASCII characters 'C' and '8' or is it binary C8 with a string data type?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 11
(6,780 Views)

When you convert a decimal to hexadecimal 200 corresponds to C8 that much only I know, using the converter available in internet, decimal number 200 corresponds to C8 in hexadecimal. So i thik you understand the type,

0 Kudos
Message 10 of 11
(6,765 Views)