canMessageImport - Difficult to import .asc file from Vector

24 次查看(过去 30 天)
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 个评论
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 中查找有关 MATLAB 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by