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

I cannot find this function in the array pallete
0 Kudos
Message 11 of 21
(1,984 Views)

What function are you referring to, and which code are you referring to? You also have to clarify the format of your source string. I.e., whether you have hex values, or ASCII letters. 

 

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

Message Edited by smercurio_fc on 05-27-2010 09:24 AM
0 Kudos
Message 12 of 21
(1,983 Views)
0 Kudos
Message 13 of 21
(1,976 Views)

That is the Build Array primitive from the Array palette.  You really should consider the tutorials smercurio_fc recommended.

 

Lynn 

0 Kudos
Message 14 of 21
(1,971 Views)

This almost solves my problem 🙂 

Since my string updates 3 times in a second (in a while loop) I need to figure out how to display all of the data, and not just the current value. I tried to use Build Table Express VI, but it requires a numeric input, and I can't convert such a large HEX string to a number.

0 Kudos
Message 15 of 21
(1,942 Views)

Hey Zabic,

 

What was the problem with the solution from smercurio_fc's

 

the function that you were unable to find is just a build array VI from the array pallate.

0 Kudos
Message 16 of 21
(1,916 Views)
I found that, but as I said, my string is in a while loop, and I need to display it every time a loop executes, but string from the last execution must not be erased. Every time a loop executes, I need to write a string to a new row.
0 Kudos
Message 17 of 21
(1,910 Views)

Can you try something like this??

 

 

 

CheckThis.png

Message Edited by Krunal K Patel on 05-28-2010 02:11 AM
0 Kudos
Message 18 of 21
(1,901 Views)
Build Array in a loop like this is a very dangerous thing to do. It will accumulate indefinitely as long as the loop executes and since there is no thing like unlimited resources, be it memory or anything else, it will come to a grinding halt at some point.
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 19 of 21
(1,889 Views)

Yes Rolf, i think you are right. I am scratching my head to find the alternative solution for the problem. Or even programmer should take care of such pitfalls and try to avoid it.

In this case I think programmer can limit the size of the array to be displayed in table and delete all the previous data from the array. Please let me know if there is any alternative method to do it.

 

Thanks again for the Point Rolf.

0 Kudos
Message 20 of 21
(1,880 Views)