asammdf icon indicating copy to clipboard operation
asammdf copied to clipboard

Asammdf does not read vectors, so it skips them.

Open ErikValle2 opened this issue 1 year ago • 5 comments

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.

ErikValle2 avatar May 20 '24 14:05 ErikValle2

Please share a screenshot with the asammdfgui

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

danielhrisca avatar May 20 '24 14:05 danielhrisca

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

ErikValle2 avatar May 21 '24 06:05 ErikValle2

what about if you search for it image

danielhrisca avatar May 21 '24 06:05 danielhrisca

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

image

image

ErikValle2 avatar May 21 '24 06:05 ErikValle2

Then there is no RadarData channel in your file

danielhrisca avatar May 21 '24 06:05 danielhrisca