xcpA2L error: Error using numel Bad subscripting index.

4 次查看(过去 30 天)
Hello I'm trying to run xcpA2L("test.a2l") on MATLAB 2021a but it keeps throwing this error. I can parse other ".a2l" files just fine. The only difference I can think of is that this new "test.a2l" is generated by buidling software from MATLAB 2023a and the ones before were from MATLAB 2018b. Not sure if I'm making the right correlation here that it's not compatible. I tried running xcpA2L("test.a2l") on MATLAB 2023a and it does work.

回答(1 个)

Raghava S N
Raghava S N 2024-8-7
Hi Shannon,
The issue you are facing seems to be due to a version mismatch in the A2L version. From the MATLAB R2021b release onwards, “xcpA2L” executes faster and produces a xcp.A2L object that complies with A2L version 1.7.1. Refer to this link for more information about “xcpA2L” in MATLAB R2021b - https://www.mathworks.com/help/releases/R2021b/vnt/ug/xcpa2l.html?searchHighlight=xcpA2L&s_tid=doc_srchtitle. The .a2l” files generated by the MATLAB R2021a release and previous releases use A2L version 1.6.x.
For more information, refer to the release notes of MATLAB R2021b - https://www.mathworks.com/help/vnt/release-notes.html#mw_d6684789-5c20-4450-8563-9985c8b6a309.
Also, consider upgrading to MATLAB R2021b or newer releases to take advantage of the new parser that supports up to A2L version 1.7.1.
  1 个评论
Shannon
Shannon 2024-8-8
Hi Raghava,
Thanks for the explanation. With that being said, is upgrading the only solution to run this parser for .a2l's generated by newer MATLAB versions? Our system runs on Speedgoat and that would require upgrading as well if that were the case.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by