날짜: 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
해결되었습니다! 솔루션으로 이동.
I didn't try, but I think you can use "String to Byte Array" and then add the array elements.
Hope this helps,
Daniel
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.