DHowett / qlbreader

"qlb reader" :P
0 stars 0 forks source link

Little endian may not be correct for data block #7

Closed DHowett closed 8 years ago

DHowett commented 8 years ago

Adjacent values in CH2 at the beginning of the file read:

02 A5
02 A6
02 A6
02 A2
02 A1

Reading these as LE U16s gives us a difference of 256 between the first two measurements. Intuition tells us that if these are immediately adjacent reads on the same channel, they should differ only a little.

Parsing them as BE U16s gives us a difference of 1 between the first two measurements.

DHowett commented 8 years ago

Not an issue. The nul byte at 0x47C is not part of the data, and should be skipped. This leaves clean LE UINT16 data.