Does anyone know how to convert a .blf file (Canalyzer) into matlab structure?
Show older comments
Hi,
Does anyone know how to convert a .blf file (Canalyzer) into matlab structure?
Thank you in advance
2 Comments
Chong Wang
on 6 Jul 2023
use blfread function of Vehicle Network Toolbox.
Harry Maguire
on 7 Dec 2023
Leverage MATLAB's CAN toolbox or tailored scripts to transform Canalyzer's .blf data into a structured format within MATLAB.
Accepted Answer
More Answers (3)
Tejas Sonavane
on 30 May 2017
3 votes
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
Tianji Li
on 31 Jul 2018
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.
Nagaraju Akepogu
on 15 Feb 2019
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
Pallavi Bhargava
on 23 Sep 2019
I am facing same problem.
Did you find any solution for this?
Can you share dbc that worked for you?
Thanks
Dharaneedharan Arumugam
on 11 Feb 2021
Error at line number 163
Amnish
on 28 Oct 2022
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?
sameulChukwezi
on 7 Aug 2023
I have faced the same Issue.Please also guide me.
Jack Kallis
on 20 Oct 2023
To convert a .blf file (Canalyzer) into a Matlab structure, use dedicated tools or scripts for BLF file parsing.
Chong Wang
on 7 Oct 2023
0 votes
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
Melli
on 6 Jun 2024
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.
Johan
on 6 Nov 2024
0 votes
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.
1 Comment
Walter Roberson
on 6 Nov 2024
The "[this site]" did not get linked ?
Categories
Find more on Language Support in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!