05-08-2010 03:13 AM
I am trying to convert a float number to hex, then get the sum of each byte. Please see attached pic, e.g. 30.5 convert to 403E 8000 0000 0000 using hex dispaly. I want to get the sum of each byte, 40+3E+80+00+00+00+00+00, how could I do it in the labview.
Any help will be greatly appreciated!
Stephen
Solved! Go to Solution.
05-08-2010 03:19 AM
I didn't try, but I think you can use "String to Byte Array" and then add the array elements.
Hope this helps,
Daniel
05-08-2010 03:29 AM
05-08-2010 06:55 AM - edited 05-08-2010 06:58 AM
05-08-2010 12:43 PM
One thing to take care:
The sum of the U8 array might easily be > 255, so the U8 containing the sum might overflow. To prevent this you might have to transform the array to U16.