04-21-2011 02:06 PM
Hi,
How can I poperly convert the binary data on the ate file to ASCII and HEX characters?
Thanks for your help.
04-21-2011 02:23 PM
The file is already an ascii representation of binary
Here is how to get the ascii to HEX
04-21-2011 02:26 PM
The file already contains ASCII characters (0 or 1), 18 per line followed by three tab characters.
Going out on a limb here, I am guessing these represent bits of a binary format. Since there is no native 18 bit data type, we need more information on what you actually want. You could scan the lineas as binary format as U32 type. Have you tried?
Thr resulting U32 array could be formatted as hex or whatever you want or even flattened to a binary string. We clearly need more information what kind of output you are looking for.
04-21-2011 02:38 PM - edited 04-21-2011 02:39 PM
04-21-2011 02:52 PM
Could you help me out with this last option? to U32 and to Hex and Ascii?
04-21-2011 02:53 PM
I didn't see the last posting.
04-21-2011 03:35 PM
@gembo wrote:
... and to Hex and Ascii?
That can mean many things. You need to be much more specific!
04-22-2011 12:45 AM
So I have 16bit data to go from binary to decimal. Need help please.
04-22-2011 01:35 AM
Did you try Altenbach's VI in message #4?