×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

batch conversion of CANBUS logged data

batch conversion of CANBUS logged data

batch conversion of CANBUS logged data

(OP)
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

RE: batch conversion of CANBUS logged data

well, if you are up for some programming, here's s description of the file format, and comments that Matlab has an API
https://maxwell.ict.griffith.edu.au/spl/matlab-pag...
"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
http://www.laserpubs.com/techcomm

RE: batch conversion of CANBUS logged data

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close