LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i convert a large hex (bigger then U64) string to a number

how can i convert a large hex (bigger then U64) string to a number?
Message 1 of 21
(5,319 Views)
Can you please post a sample input which you want to convert?
0 Kudos
Message 2 of 21
(5,304 Views)
55 AA 09 09 D5 55 09 03 00 00 00 0A 00
0 Kudos
Message 3 of 21
(5,302 Views)

Hi,

you can handle it as an array. Can you explain how you want to work with it, if you don't have a datatype for it?

 

Mike

0 Kudos
Message 4 of 21
(5,297 Views)

I just need to convert it into a number and display it in a table in hex format (it is in a while loop).

If there is maby a way to display a string in a table, that would also work for me.

0 Kudos
Message 5 of 21
(5,290 Views)

If you only need to display the "number" to a human reader, then converting to a string is your best choice.  If the numeric value is greater than that which can be represented by a U64, there is no way in LabVIEW to display it as a number.

 

If you search the Forum, I think there was a Coding Challenge several years ago which dealt with large numbers and some of the results from that may work as a starting point. 

 

########### 

 

I just looked at your posts again.  It appears that you have a hex strong and you want to display a hex string. I am confused and I think some of the others who have responded may be also.  Please show us what you want the display to look like.  You posted an input string in message 3.  What should the output for that string be?

 

###########

 

Lynn 

0 Kudos
Message 6 of 21
(5,268 Views)
the string I wrote IS the hex string that I have to put in a table, as a number or as a string. It woul be great If I could figure out how to put a string in a table .
0 Kudos
Message 7 of 21
(5,260 Views)

Good Question Zabic....

i am looking forward for the solution too. I have attached the image to simplify the question as people above seemed to get confused.test.JPG

0 Kudos
Message 8 of 21
(5,239 Views)

Since you said you already have a string to begin with, my assumption, based on what you're saying, is that the string has hex values in there, rather than letters to indicate hex characters. Otherwise, you could set the string indicator to "hex display" and you'd be done.

 

In this case, to display it in a table you could do something like this:

 

 

Message Edited by smercurio_fc on 05-27-2010 09:01 AM
Message 9 of 21
(5,238 Views)

Is this what you want?

 

Lynn

 

hex to table.png 

0 Kudos
Message 10 of 21
(5,231 Views)