07-23-2016 02:42 PM
Hi!!
I have a 32-bit string that I need to convert a hexadecimal number, which program can I do?
Someone can help me?
Thanks
Solved! Go to Solution.
07-23-2016 02:48 PM
Each character in a string is a BYTE. So are you saying each of those I8s are 0 or 1? If that is the case, then why not just use booleans (TRUE or FALSE)? An array of booleans would make this really simple since you could just use the Boolean Array To Number primitive to do the conversion for you.
07-23-2016 03:53 PM
Do you mean to say you have a string (Ascii, text data) of the form "01001011010001010010111001010011"? [If I counted correctly, there are exactly 32 0's or 1's in that string]. Have you looked at the String functions? Have you looked at "Scan from String"?
Bob Schor
07-23-2016 04:15 PM
I just noticed that you specified LV 7, which I assume is LabVIEW 7. I don't have LabVIEW 7 on this PC, so I'm not sure if the Scan from String function goes back that far (I'm pretty sure that it has been around for at least 6-7 years, though). But there should be some appropriate String function, I would think ... If not, get "modern" LabVIEW and you will have a much more powerful Software Platform than LabVIEW 7.
Bob Schor
07-23-2016 04:30 PM
So I had a VM with Windows XP and LabVIEW 7.0 -- Scan from String is there, you should be "good to go".
BS