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

Asammdf does not read vectors, so it skips them. #1023

Open ErikValle2 opened 6 months ago

ErikValle2 commented 6 months ago

Python version

'python=3.11.9 (main, Apr 24 2024, 11:58:32) [GCC 12.2.0]' 'os=Linux-5.15.0-105-generic-x86_64-with-glibc2.36' 'numpy=1.26.4' 'asammdf=7.4.2'

Code

MDF version

4.10.

Code snippet

from asammdf import MDF

# Path to your MDF4 file
file_path = 'path/to/your/file.m4f'

# Load the MDF4 file
mdf = MDF(file_path)

# Read data from channel 'RadarData'
test = mdf.get('RadarData')

Traceback

MdfException: Channel "RadarData" not found The channel exists and it is a vector like [ 128 4 149 254 7 0 0 0 0 ...]

Description

Asammdf cannot get data from the channel 'RadarData' because it is a vector instead of containing a single value.

danielhrisca commented 6 months ago

Please share a screenshot with the asammdfgui

I think your channel is part of a structure and it is missing the leading part

ErikValle2 commented 6 months ago

Here you are, I looked in every single channel, but the target does not appear. By the way, thank you so much for this initiative and all your efforts.

image

danielhrisca commented 6 months ago

what about if you search for it image

ErikValle2 commented 6 months ago

It finds only the other two channels, but no "RadarData"

image

image

danielhrisca commented 6 months ago

Then there is no RadarData channel in your file