Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch conversion of CANBUS logged data

Status
Not open for further replies.

pietro82

Automotive
Mar 14, 2012
189
Dear all,

I have tons of CANBUS logs that I have to analyse with Matlab. I have chosen Matlab since I can automate the post-processing. Unfortunately, Matlab seems to have a few limitations in the messages it can import so, in some cases, I have to use another SW for exporting .ASC/.BLF file into .MAT file. I usually use an old version of Vector CANAlyzer which it does not permit batch convert CANBUS logs (for batch conversion I mean the ability to select an entire folder and automatically convert it). Probably, a newer version will permit it, but it is too pricey for my use. Is there any other tool I can use for batch conversion of .ASC file into .MAT or any other file format that can be opened with Matlab? Any suggestion is appreciated.

Thank you.

Best regards,

Pietro
 
Replies continue below

Recommended for you

well, if you are up for some programming, here's s description of the file format, and comments that Matlab has an API
"Most MATLAB users do not need to know the internal format of a MAT-file.
Even users who must read and write MAT-files from C and Fortran programs
do not need to know the MAT-file format if they use the MATLAB Application
Program Interface (API). This API shields users from dependence on the
details of the MAT-file format."


Jay


Jay Maechtlen
 
My previous experience may have been a bit caveman-level, but I found it was possible to rename the .ASC files to .CSV and then make a simple MATLAB code to convert the raw CAN numbers into the signals of interest I was reading.
It was pretty straightforward to have a batch Matlab script load the file, save a copy as the CSV, and then open the CSV's, do the data conversion and save as M files with all the data intact.
Was a little bit of a coding exercise, but if you don't have the right toolboxes I found it was possible to do this way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor