asammdf icon indicating copy to clipboard operation
asammdf copied to clipboard

Wrong decoding of file with version 7.3.13(correct with version 7.2.0)

Open MiroJelev opened this issue 2 years ago • 1 comments

Python version

 'bit (AMD64)]')
'os=Windows-10-10.0.19045-SP0'
'numpy=1.25.1'
ldf is not supported
xls is not supported
xlsx is not supported
yaml is not supported
'asammdf=7.3.13'

Code

MDF version

4.11

Code snippet

mf4 = MDF(input_file)
decoded_mf4 = mf4.extract_bus_logging({"CAN": [(dbc_file, 0)]})
decoded_mf4.save(decoded_file, overwrite=True, compression=0)

Traceback

Description

With version 7.3.13(in red) of asammdf the MF4 file is incorrectly interpreted for signals of 1000Hz.

  • The values jump from zero to max as can be seen on the graph.
  • Some values are represented correctly(maybe non-zero ones?).
  • There are no negative values.

For version 7.2.0(in blue) of asammdf the file is interpreted correctly as seen on the screenshot.

screenshot

MiroJelev avatar Jul 21 '23 12:07 MiroJelev

@MiroJelev please try the development branch code

danielhrisca avatar Dec 10 '23 18:12 danielhrisca