canMessageImport - Difficult to import .asc file from Vector

조회 수: 15 (최근 30일)
Fernando Sarracini Júnior
Fernando Sarracini Júnior 2023년 1월 27일
댓글: LuisMiguel 2024년 2월 19일
Hello guys, I am having difficulties to use canMessageImport (2022b Matlab version) to import .asc file with the header like this below. The .asc file was recorded with VN-1630 Box. I am using: message = canMessageImport(file,'vector',canDB,'OutputFormat','timetable'), but I get an empty result.
Could you guys please help me how I could work around that?
date Wed Sep 22 02:06:16.360 pm 2021
base hex timestamps absolute
internal events logged
// version 10.0.0
Begin TriggerBlock Wed Sep 22 02:06:16.360 pm 2021
0.000000 Start of measurement
0.003830 CANFD 1 Rx 333 CANSig1 1 0 8 8 00 00 00 00 00 00 00 00 105203 138 303000 f8004819 46500250 4b280150 20011736 2000091c
0.003965 CANFD 1 Rx 204 CANSig2 1 0 8 8 dc 00 7d 01 6c f5 00 00 104156 134 303000 80001a63 46500250 4b280150 20011736 2000091c
  댓글 수: 2
Adrian Izbicki
Adrian Izbicki 2023년 7월 27일
I'm having the same issue. Did you figure this out?
LuisMiguel
LuisMiguel 2024년 2월 19일
I had the same problem with some asc files. I solved it by converting the asc files to new asc files using canalyzer: menu -> tool-> logging converison. Below a screenshoot with the wrong original asc file (left) and a good one generated from it (right). The more notable changes are the base type and the extra info added at the end of the message (Length, BitCount, ID). I hope it helps

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by