Thanks Gabriel , MRAB and Mark
Instead of using the bitwise operator on the unpacked data I was
trying to do a bitwise operator directly after read. This was giving
the unsupported operand error
i.e
# version in my code - wrong
file.read(2) & 0x001f
Instead of
# version in my example and now i
"harijay" wrote in message
news:4c7d58a1-830f-4f02-ba07-aa4910f5f...@b16g2000yqb.googlegroups.com...
In my last post I had asked about reading data from a binary file
using the struct module.
Thanks to some excellent help , I have managed to read in
successfully
most of the header of this bina
En Mon, 23 Feb 2009 22:18:31 -0200, harijay escribió:
mentioned here : ( http://www.dataq.com/support/techinfo/ff.htm)
I have a question about how to bitmask a bunch of bytes read in from
such a binary formatted file .
For eg the spec says the first two bytes have different parameters in
diff
harijay wrote:
In my last post I had asked about reading data from a binary file
using the struct module.
Thanks to some excellent help , I have managed to read in
successfully
most of the header of this binary format that I want to parse. These
are some time-voltage traces from a digital
to ana
In my last post I had asked about reading data from a binary file
using the struct module.
Thanks to some excellent help , I have managed to read in
successfully
most of the header of this binary format that I want to parse. These
are some time-voltage traces from a digital
to analog converter for