Vehicle Network Toolbox MDF read error
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Hari Desanur
le 17 Avr 2017
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.
Réponses (0)
Voir également
Catégories
En savoir plus sur Vehicle Dynamics and Scenarios dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!