11-01-2012 02:24 PM
Hi All,
I have my problem "half" resolved, but need some assistance on the final piece. Overall, I need to take three string values (hex format), convert them to binary, add them and then convert back to a string (hex format). If that doesn't make sense maybe this will:
Final Result (My target) = 0xCC
= 0x03 + 0x01 + 0x04
= 0x03; 0011b
= 0x01; 0001b
= 0x04; 0100b
For my app, we are dropping "masking" some of the bits so that we get 1 byte:
= 0x03; 11b
= 0x01; 001b
= 0x04; 100b
So...
11001100b = 0xCC
In my VI, I am taking each initial string [0x03,0x01 and 0x04] type casting them to U8. Next I need to "mask" the binary values as shown above and then add them. I am not sure how to do this in LV??
Thanks for the help,
Bryan
11-01-2012 02:37 PM - edited 11-01-2012 02:38 PM