How can I import mdf4 files using mdfimport?

How can I import mdf4 files using mdfimport? I want to import mdf4 file (.mf4) using the mdfimport. - The function mdfimport at itself is running - I open MDF File then the folowing error message pop up: not valid file type

댓글 수: 5

ghizsab
ghizsab 2015년 10월 14일
Hello Denis Ott,
I am also interested on how to use the mdfimport with MDF 4 files.
Hello guys,
I've got the same problem trying to import .mf4-files in matlab. Is there any solution?
Same here
yupp, same problem.
Is there an available solution to this problem?

댓글을 달려면 로그인하십시오.

답변 (5개)

Fabian Aigner
Fabian Aigner 2016년 6월 9일

1 개 추천

As far as I know, the mdf import module available at mathworks file exchange is only able to read MDF Version 3 files (or .dat when using INCA). Due to the much more complex specification of MDF 4 compared to MDF 3 (including some mechanisms to compress the a MDF 4.1 file), I don't know any available MATLAB freeware for importing MDF 4 files. There is an option for python ( https://pypi.python.org/pypi/mdfreader/0.2.1 ), but I have no experience with that at the moment.

댓글 수: 4

Yara
Yara 2023년 11월 20일
Any luck in knowing how to read MDF 4 files? on matlab 2021b
@Yara Vehicle Network Toolbox can read MDF4 files since R2016b..
Yara
Yara 2023년 11월 20일
@Walter Roberson is this the only way to access .mf4 file? The only way I know is converting it to a .dat (MDF v3) file. Thank you.

댓글을 달려면 로그인하십시오.

Abdul Moeed Amjad
Abdul Moeed Amjad 2019년 10월 8일

1 개 추천

Hi,
I don't know whether my post is related or not but I extracted the data from mf4 files (obtained through dSPACE) using sequence of these commands:
1st: mdfds = mdfDatastore('buf_011.MF4');
2nd: data=readall(mdfds);
Regards

댓글 수: 3

qrqr
qrqr 2019년 10월 31일
Vehicle Network Toolbox が無くてもできますか?
As I know ,this readall() will load the first chanel of same raster of the first one.
Do you know how to deal with different rasters in one mdf files?
Is there some tool in matlab to resample mdf files?
set the SelectedChannelGroupNumber property?

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2016년 4월 25일

0 개 추천

perhaps MDF Import Tool and Function updated for mdf-file format from INCA 7.1.9 in the File Exchange.
I cannot seem to find an example mf4 file to test this with.

댓글 수: 2

Wamidh
Wamidh 2016년 5월 3일
편집: Walter Roberson 2019년 10월 8일
you can find a sample in the end of this page https://wiki.asam.net/display/STANDARDS/ASAM+MDF
I tried the tool a bit. I found a problem in it assuming a non-zero number of channels, and I repaired that in my copy. However, it then reached end of file in the test file unexpected. Testing further, I can see that it has interpreted parts of the file that are intended to be text as if they are data offsets. Either it is the wrong program to read those files, or else it has fundamental bugs beyond my available time to investigate.

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2019년 8월 1일

0 개 추천

These days, Vehicle Network Toolbox mdf() function supports MDF 4 files.

댓글 수: 2

Jonas B
Jonas B 2019년 9월 6일
Hi Walter,
is the support of MDF 4 files in the Vehicle Network Toolbox available in Matlab 2016b ?
And there is no freeware of the toolbox, right?
Yes, R2016b was the first release to introduce MDF4 files, as part of the Vehicle Network Toolbox

댓글을 달려면 로그인하십시오.

Andrei
Andrei 2025년 11월 5일

0 개 추천

mdfRead function in Vehicle Network Toolbox is the recommended way to read data from MDF files in MATLAB

태그

질문:

2015년 8월 7일

답변:

2025년 11월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by