Does anyone know how to convert a .blf file (Canalyzer) into matlab structure?

Hi,
Does anyone know how to convert a .blf file (Canalyzer) into matlab structure?
Thank you in advance

2 Comments

use blfread function of Vehicle Network Toolbox.
Leverage MATLAB's CAN toolbox or tailored scripts to transform Canalyzer's .blf data into a structured format within MATLAB.

Sign in to comment.

 Accepted Answer

I understand this response is coming much later than the question, but hopefully it will be useful to users searching the same topic in the future.
The blfread function of Vehicle Network Toolbox supports reading BLF-Files since R2019a.
Here is a link to documentation.
Hope this helps.
Thanks,
Rich

More Answers (3)

Here is answer to you question. This module is Called CanLoad and is created by Reid Steiger in Ford. I have attached the files you will need. Here is how it operates.
  • Unzip the folder contents
  • Put all the files that I have attached here in a folder.
  • Use dbc2ModuleBatch.p file to convert your .dbc files into these four files namely --> can_module_ext.mGetAsciiMessageFilterList.m , identify_DBC_Name.m , module_dbcname.m.
  • Place all the above newly files in the directory that contains the .blf files and add to the Matlab path.
  • Run CanLoad.p , this requires an input that is full name and path of the file.

11 Comments

Is there any help document for those function? Like, I want to use the transformed .mat file to reproduce the whole message by Simulink in original timing sequence, to bypass CANoe, in order to implement automated testing easier.
Hi Tejas
I am getting below error while executing dbc2Module.p /dbc2ModuleBatch.p on few DBC files ( not all)
would you please help to fix the issue in dbc or provide me updated scipt if available
In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in dbc2Module
Error in dbc2Module
Error in dbc2ModuleBatch
I am facing same problem.
Did you find any solution for this?
Can you share dbc that worked for you?
Thanks
Hi,
It runs successfully only when the matlab script that calls CanLoad() is in same directory as the .blf file. Otherwise it gives an exception and I have to restart MATLAB. Does anybody see this issue?
It is quite frustrating that I've not find this solution yet.
Can you elaborate your issue with me.
I have faced the same Issue.Please also guide me.
To convert a .blf file (Canalyzer) into a Matlab structure, use dedicated tools or scripts for BLF file parsing.

Sign in to comment.

Hi, actually there is a tool to convert blf to mdf format inside CANalzyer. Then you can easily acess all signals using the Vehicle Network Toolbox or mdfVisualizer.

1 Comment

Remember that the specific steps and functionalities might vary depending on the version of Canalyzer, CanLoad, and MATLAB you're using. Refer to the official documentation and online resources for detailed instructions.

Sign in to comment.

Yes, I successfully converted a .blf file (Canalyzer) into a MATLAB structure using a conversion tool on [this site], which made the process quick and easy.

Categories

Community Treasure Hunt

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

Start Hunting!