# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## convert from hexadecimal to decimal

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?

Message 1 of 11
(7,024 Views)
Solution
Accepted by topic author greggers89

## Re: convert from hexadecimal to decimal

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:

(numeric constant is defined as U16!)

Best regards,
GerdW

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

## Re: convert from hexadecimal to decimal

Thank you so so much!

Message 3 of 11
(7,007 Views)

## Convert from version 4.0.1. to version of labview 2009

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

Message 4 of 11
(6,983 Views)

## Re: Convert from version 4.0.1. to version of labview 2009

ohh i just forgot the file 🙂

Message 5 of 11
(6,980 Views)

## Re: Convert from version 4.0.1. to version of labview 2009

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

Message 6 of 11
(6,975 Views)

## Re: Convert from version 4.0.1. to version of labview 2009

Sorry and thx for the tip

Message 7 of 11
(6,970 Views)

## Re: convert from hexadecimal to decimal

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

Message 8 of 11
(6,787 Views)

## Re: convert from hexadecimal to decimal

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?

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
Message 9 of 11
(6,784 Views)

## Re: convert from hexadecimal to decimal

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,

Message 10 of 11
(6,769 Views)