Vehicle Network Toolbox MDF read error

7 次查看(过去 30 天)
I was provided with a mdf meassurement file recorded with Vector hardware by an automotive OEM. I can read in the content of the file using vehicle network toolbox:
mdfContent = mdf(filename);
The file contains 1475 channel groups. Each with a differing number of signals. I tried to read a subst of these signals. Unfortunately I get an error for some channel groups. Therefore I tried to red out all channel groups by:
readErrors = [];
for channelGroupIterator = 1 : numel(mdfContent.ChannelGroup)
try
data = read(mdfContent, channelGroupIterator, mdfContent.ChannelNames{channelGroupIterator});
catch ME
readErrors = [readErrors; {channelGroupIterator, ME.identifier}];
end
end
I get an error for 1020 of the 1475 channel groups. The error is one of the two:
'asam_mdf:Errors:eStatusStringTableEntry'
'asam_mdf:Errors:eFileReadError'
Can someone supply me with additional information on what causes these errors or how to circumvent them? The file can be processed using the Vector tool CANape. From there a valid mat-File export is possible, but usage of an external tool means high additional effort. Therfore, the vehicle network toolbox is the prefered solution.
  1 个评论
Hari Desanur
Hari Desanur 2017-4-17
The issue could be that the parser which reads the MDF measurement file is not able to read the input file correctly. Please can you provide the MDF file which you are using so that I can reproduce this issue.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vehicle Dynamics and Scenarios 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by