danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
627 stars 223 forks source link

export does not fully report errors #1049

Open mm-mm-bb opened 2 months ago

mm-mm-bb commented 2 months ago

version

Build information: version 7.4.5 PySide6 6.6.0 CPython 3.12.4 x64

Description

I have a record file that contains canbus errors (just temporary short H and L), from the GUI I can see the error and its type in CAN Bus Trace; but when exporting to CSV the field CAN_ErrorFrame.CAN_ErrorFrame.ErrorType switch between 3 and 2, but I cant understand what is supposed to mean. On ASC export there is a more clean 1.779000 1 ErrorFrame but this is all the info i get, in the code seems like it should also add the error type by the description and some more info if present.

danielhrisca commented 2 months ago

image

mm-mm-bb commented 2 months ago

thanks, this partially answer. Every line in the csv is a valid message received, but each line has one of this error code. I know (from the GUI) that there are multiple error between two valid messages, follow by multiple valid messages. This information seems to be lost when exporting in most format? in image while i expect image

danielhrisca commented 1 month ago

you could copy directly from the CAN bus window