Import CAN Message from (.blf) format file into Simulink Model using Vehicle Network Toolbox

20 views (last 30 days)
Hello there,
I have to define the Signals from Chassis CAN Logging (.dbc) format file and import their values from Chassis CAN Logging (.blf ) format file as CAN message (inputs) into my Simulink_Model.
I have the following files:
  1. (.dbc) file (included the signals descriptions of the vehicle Chassis)
  2. (.blf) file (included the signals values of the vehicle Chassis)
  3. My (.slx) Simulink_Model (with Longitudinal speed, Yaw rate, Steering wheel angle, …..etc as inputs )
In Simulink using Vehicle Network Toolbox, I used:
  1. CAN config block
  2. CAN Receive block
  3. CAN Unpack block
In command window in MATLAB I tried to read (.blf) file and filter the signals to import a message CAN to the Simulink_Model as described in this link https://de.mathworks.com/help/vnt/ug/blfread.html and https://de.mathworks.com/help/vnt/ug/load-dbc-files-and-create-messages.html, but It does not work.
How I could import the Message (Signal values) from (.blf) file into Simulink?
Any help is appreciated.

Answers (1)

Arjunkrishna Mitta
Arjunkrishna Mitta on 10 Feb 2021
Kindly refer this link to repackage your messages.

Community Treasure Hunt

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

Start Hunting!