11-08-2013 12:04 PM
Hello,
I am having trouble with changing the byte order of a HEX string, I hope you low level gurus can help me out.
I have a HEX input string 12345678, and I need to change it to 78563412.
I tried using the Byte Swap vi, but it does not do anything.
I am told this is an endian issue, but when I try to convert this to a number, and then back, it does not look right.
HELP!
11-08-2013 12:11 PM
Seems to me all you need is the Reverse String function.
11-08-2013 12:16 PM
Well that was easy....good lord.....
I had assumed it would have taken 12345678 into 87654321 so I didnt try it. But LV must know it is in hex and handle is differently.
Thanks.
11-08-2013 12:41 PM
Reverse String just reverses the BYTES (2 hex characters), not NIBBLES (1 hex character). Almost everything comse down to the byte.