ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 74 forks source link

wrong hanling of bit offset for embeded channels in mdf version 3 #80

Closed danielhrisca closed 6 years ago

danielhrisca commented 6 years ago

Using the test file and plotting _Fsf_pres_sensrla

it should be:

image

but mdfreader plots:

image

I think the error comes from the fact that when loading the record info, the parent channel is a 16 bit channel, and this channel has a bit offset of 8 relative to the parent channel, while in the conversion the bit offset is computed from the offset in the channel group record , resulting in a bit offset of 0.

ratal commented 6 years ago

Hi Daniel, Last commit should fix this.

danielhrisca commented 6 years ago

Hello Aymeric,

this issue is solved.