Questions tagged [asammdf]
64 questions
4
votes
3 answers
mf4 to csv conversion in python
I have a dataset of mf4 and I want to convert it into CSV in python. I have read the data from mf4 and convert it into csv (as given below) but I am getting an error, as I am new to python, so unable to find an appropriate method to convert.
from…

jaz
- 89
- 1
- 9
2
votes
1 answer
spark trying to convert .Mf4 to save as .txt files, getting issue
I have a spark code which reads .mf4 files and write as a .txt file. Also running this code in databricks.
Could you please suggest? Even after increasing the executor memory in data bricks in cluster, still having the issue.
pip install…

venkat Ramanan VTR
- 117
- 1
- 9
1
vote
0 answers
Unable to Install asammdf in Python 3.8 32-bit Virtual Environment
I am trying to create a 32-bit Python virtual environment using Python 3.8 in Visual Studio Code on a Windows system. I want to install the asammdf library in this environment. Here's what I've done so far:
I've created the virtual environment with…

Suprava
- 69
- 6
1
vote
0 answers
Matlab cannot import Python package (getting namespace module)
I have a problem with this line in MATLAB:
py.importlib.import_module('asammdf');
It imports the library but it returns the following:
''
once I try to initialize MDF object (which is this lib part) with:
MDF =…

Przemek
- 11
- 2
1
vote
0 answers
Save dynamic signals with arrays into .mat file
I need to extract few signals from mf4 file and save them in .mat file. The signals look like this:
camera_detection.timestamp.seconds.value
camera_detection.timestamp.nanoseconds.value
camera_detection.object._0_.type …

Anonymous
- 336
- 3
- 23
1
vote
2 answers
numpy.core.multiarray failed to import after installing asammdf package
I try to read the mf4 file which has acoustic signal.
from asammdf import MDF
data = MDF('file1.mf4')
The packages that I installed are
asammdf 7.0.7
numpy 1.22.3
ImportError: DLL load failed while importing _multiarray_umath: The specified…

Susan
- 431
- 1
- 4
- 16
1
vote
1 answer
ldf is not supported
I install asammdf package to read dat file in python. After installing asammdf using pip install asammdf, the installation is successful. However, when I import asammdf, I got ldf is not supported.
May I know how to solve this issue and after…

Susan
- 431
- 1
- 4
- 16
1
vote
0 answers
ASAM MDF library for C#
I have developed an application in which the user can import a csv file of measurement data and see all signals of the measurement in a list and plot them.
I want to enable the user to import .mf4 (ASAM MDF) files as well, but I was not able to find…

nickolas
- 121
- 7
1
vote
1 answer
export tables from database to mdf file
i am python beginner. i have Database that has 5 tables, i use python to export all those tables to mdf file using asammdf.
path_data = os.path.join('..\\Data', 'db_2021-05-06_11-49-42_day.db')
con = sqlite3.connect(path_data)
cursor =…

Laz
- 29
- 1
- 4
1
vote
1 answer
how to combine two datasets to make one combined plot in python
I have a dataset of 6 parameters with 500 values each and I want to combine the two of the datasets to get the road curvature but I am getting an error. Since I am new to python, I am not sure that I am using the correct logic or not. Please…

jaz
- 89
- 1
- 9
1
vote
1 answer
Using asammdf in Python to decode CAN frames
I might be misunderstanding something about asammdf in general, but I'm not really sure how to go about decoding a CAN frame.
Supposing I have a dbc with relevant messages defined, I get that I can use mdf.extract_bus_logging() to parse the signals,…

Henry
- 495
- 3
- 11
0
votes
0 answers
How to fix "ValueError: array-shape mismatch in array" when reading MDF to a dataframe?
I want to read the contents of a MDF file
from asammdf import MDF
mdf_obj = MDF('READING_238_02.03.2023_1021.MDF')
df = mdf_obj.to_dataframe()
But I have this error
---> 38 df = mdf_obj.to_dataframe()
ValueError: array-shape mismatch in array 1…

momo
- 1
0
votes
0 answers
How to make extract_bus_logging in asammdf decode raw can data of length longer than 8?
I have an MF4 file with raw can data and want to decode this to get the physical values. It seems like the decoding of all signals with length 8 (as defined in the dbc file) is working as expected. However, I have a segment in the dbc file that…

VictorGardi
- 1
- 2
0
votes
0 answers
Why doesn't MDF.extract_bus_loging() function extract all of my CAN signals?
I am using the asammdf library for extracting CAN messages from MF4 files.
the function extract_bus_logging called on a mdf object is supposed to extract all possible CAN messages using given CAN database.
In my database I have multiple CAN messages…

Andrew
- 1
- 1
0
votes
1 answer
Same Signal name in asammdf
I'm using asammdf library and trying to get measurement values.
But mdf files have 4 ECUs and some signals have same name with different bus channel.
Also, I got group information but I don't know what it is.
For example, like…

Neoguri
- 11
- 1