Re: hex to binary and extract sequence of bits
- From: RichL <x@xxxxxxxx>
- Date: Wed, 28 Sep 2005 21:40:47 -0500 (CDT)
Hello
thanks for the answers. I think I have to explain myself a bit more clearly.
I am tapping the read display input of the CAN-SendandReceive.vi which shows for example the following string (ASCII I assume) :
3C0118D0 8 00 00 12 12
where the first eight characters are the hex display of a message ID
consisting of 32 bits. My problem is that I have to extract out of
these characters a sequence of bits which are not aligned to the hex
boundaries, i.e. bit 3 to 13. So what has to happen is that each
of the eight ASCII characters, representing a hex value, has to be
converted into binary value, out of which I can extract the bit I need.
However, the binary representation has to be that of the hex value, not
the ASCII code, meaning for example that the "C" in the string has to
be converted into "1100" (hex to binary) and not "0100 0001" (ASCII
code binary) .
Hope that helps to get a solution.
.
- Prev by Date: instrument assistant
- Next by Date: Re: Prime Factor Coding Challenge
- Previous by thread: Re: hex to binary and extract sequence of bits
- Next by thread: Re: hex to binary and extract sequence of bits
- Index(es):
Relevant Pages
|