Questions tagged [asammdf]
64 questions
0
votes
1 answer
How to list all the channels in .mdf4 file using asammdf in Python?
How to get a list of all the channel names in a .mdf4 file while using asammdf? I read the description here but am unable to figure out the exact code.

chronicagain
- 1
- 2
0
votes
1 answer
How to count a channel in mdf file using asammdf library?
the mdf file contain many channel with Cha_meas_1,Cha_meas_2,Cha_meas_3,Cha_meas_4,Cha_meas_5,......Cha_meas_15.i want to count the number of channel starting with Cha_meas_,
Currently i am doing as below:
mdf_data =…

Mageo
- 84
- 2
- 9
0
votes
1 answer
Select nonzero elements from MDF files in MATLAB
I am currently working with MDF file(.mf4) in MATLAB and I don't want to see the ChannelNumsamples that contain no values or lets say zero values so how to do that? I have tried with this code. but it is not helping me to extract nonzeroes…

gbk0029
- 1
- 1
0
votes
1 answer
Merge or concatenate mdf files asammdf
I am trying to merge some mdf files using asammdf python package. When using MDF.concatenate I get this error:
asammdf.blocks.utils.MdfException: internal structure of file 1 is different; different channels
The files are from a data logger, and…

jB777
- 77
- 10
0
votes
1 answer
python close mdf(.mf4) file
I read a mf4 file using asammdf package. I want to delete this file after doing some edits but failed. The error shows: This file is in use by another program and cannot be accessed by the process. I wonder how to close a mf4 file before…

YT Q
- 31
- 4
0
votes
1 answer
Write scale/nested conversion with ASAMMDF
I am using this snippet in order to create a mf4 file with a value to text table, found in the examples from asammdf's github.
vals = 5
conversion = {
'val_{}'.format(i): i
for i in range(vals)
}
conversion.update(
{
…

raresRad1
- 1
- 1
- 1
0
votes
0 answers
function for counting number of oscillations
i'm trying to build a counter which would detect number of oscillations in a given data
i'm following a method where the slope of each point is calculated and based on negative and positive direction change
is there a preexisting function for…
0
votes
1 answer
Can Timestamp for a signal be extracted from an mdf file in Python?
I'm working with a large CAN log and have access to a .mf4 file only.
I was wondering whether you can get the timestamp at which a certain signal was sent, much like loading a .log file. I have only encountered mdf.to_dataframe() command whcih…
0
votes
1 answer
Asammdf: Rename Channel Group
i am working with asammdf to plot signals and now i have a problem, how can i rename the channel groups with the signal names?
here is my code:
mdf = MDF()
sigs = []
for equipment in table_list:
print("Table name:", equipment[0])
df =…

Laz
- 29
- 1
- 4
0
votes
1 answer
How to convert mf4 files into mat files using asammdf?
I am knew to this topic and building a GUI for file conversion from mf4 to mat.
Using the mdfreader already but need to extend it with asammdf to have an option.

Ewi
- 1
- 1
0
votes
1 answer
writing unsorted mf4 file using asammdf
Does asammdf offer the possibility to write unsorted mf4 files? I have seen that it can read both unsorted and sorted mf4 files
If it is possible do you know where I can find a short example?

ficus
- 55
- 6
0
votes
1 answer
Create MF4 to be decode by J1939 DBC - asammdf
I'm trying to create a MF4 file to be decoded by a 'J1939.dbc' as the same way of CSS electronics
My code to generate a example file is like this:
from asammdf import MDF, SUPPORTED_VERSIONS, Signal
import numpy as np
sigs = []
mdf = MDF()
samples…

Gabriel Lincoln
- 155
- 1
- 10
0
votes
1 answer
Where to find info about MDF file structures and about "Group" and "Index" when working with .mdf files?
Background info:
I'm trying to use asammdf to import .dat files in python.
Trying to use "mdf.select(["Channel_name"])" - or variations thereof - gives the following error:
asammdf - ERROR - Multiple occurances for channel "Channel_name": ((2, 18),…

Davysseus
- 109
- 2
- 2
- 7
0
votes
1 answer
connect raw mf4 data with dbc - asammdf
i am quite new to python. for my masterthesis i need to extract some signales of a mf4 data using asammdf. i've only got the raw mf4 data and da dbc. how can i connect the mf4 data with the dbc and save the required signales in a variable or…

Florian Greimel
- 11
- 1
0
votes
1 answer
Cannot extract Flexray signals from MF4 using dbc file
My question is: Is there a way to extract the flexray singals from Mf4 using dbc/arxml file and save to MDF format

Sadu Dinesh
- 19
- 6