danielhrisca / asammdf

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

Interpreting values as their definitions in the DBC #1046

Open wakey1991 opened 4 months ago

wakey1991 commented 4 months ago

I am logging a series of signals, some of which show a number value like ambient air temperature and vehicle speed however i also have some that show multiple states such as 0 = inactive, 1 = active, 2 = error, 3 = not available. I cannot seem to find a way for ASAMMDF to show the signal as its interpretation in the DBC. ASAMMDF will just show the number.

Apologies if i am overlooking something obvious, i cannot find it in the help file.

danielhrisca commented 4 months ago

Are you decoding a raw CAN bus logging mf4 file using a DBC?

wakey1991 commented 4 months ago

Yes MF4 and then extract bus signals using a DBC file built in KVASER database editor

danielhrisca commented 4 months ago

Perhaps you should try the development branch code

wakey1991 commented 4 months ago

I am not familiar with that, is there not a simple setting i can change to support this?

danielhrisca commented 4 months ago

Pip install https://github.com/danielhrisca/asammdf/archive/development.zip

wakey1991 commented 4 months ago

I have downloaded this but even following the readme it isnt clear what i do with these files in order to make my request work?

My skill is in CAN but not so good with computer programming.

wakey1991 commented 4 months ago

Pip install https://github.com/danielhrisca/asammdf/archive/development.zip

@danielhrisca ive done some research and i assume from this i need to install python? I have no experience with this at all

Is it something you could advise with, will this be a simple installation?

I just would like my CAN signals to have definitions.

Any help would be greatly appreciated

danielhrisca commented 3 months ago

you can try the bundled build found here https://github.com/danielhrisca/asammdf/actions/runs/10143948078 (dist archive)

wakey1991 commented 3 months ago

Hi, i downloaded and extracted but the program does not run.

I get the following errors Screenshot 2024-07-30 212332 2024-07-30, 21:23:22

<class 'AttributeError'>
partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import)

File "asammdf\gui\asammdfgui.py", line 50, in File "asammdf\gui\asammdfgui.py", line 43, in main File "asammdf\gui\widgets\main.py", line 47, in init File "asammdf\gui\widgets\batch.py", line 121, in init File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "fastparquet__init.py", line 4, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "fastparquet\writer.py", line 12, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "fastparquet\util.py", line 16, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "fsspec\init__.py", line 6, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "fsspec\compression.py", line 68, in File "fsspec\compression.py", line 46, in register_compression

Screenshot 2024-07-30 212439

I am not a programmer so this doesn't mean anything to me, is it something my end that is wrong or could i have installed it incorrectly?