Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Extracting specific row data from CANalyzer log file (*.asc)

Subject: Extracting specific row data from CANalyzer log file (*.asc)

From: Yadunandan

Date: 14 Mar, 2013 02:31:06

Message: 1 of 1


In my day to day work, I log several data using CANalyzer to collect vehicle CAN network data and its a *.asc format. This log file contains all the CAN messages present on the network. But, I'd like to import the whole log file in to Matlab but would like to extract only specific rows. The rows can be identified by specific CAN ID.

For example, if the entire log file has a total of 1000 rows, it could be shared between two CAN IDs as 500 rows with CAN ID '222', and the rest of 500 rows with CAN ID '333'.
What I'd like to achieve is, 'To load the entire log file but extract only the rows that contains CAN ID of '222'.

I made a script file which works successfully but only if the log file contains all the identical rows.

So, could some help me to achieve my goal please. Any script file that would help me to solve this would be greatly helpful.


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us