canMessageImport - Difficult to import .asc file from Vector
12 views (last 30 days)
Show older comments
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 Comments
LuisMiguel
on 19 Feb 2024
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1621368/image.png)
Answers (0)
See Also
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!