xcpA2L error: Error using numel Bad subscripting index.

조회 수: 4 (최근 30일)
Shannon
Shannon 2024년 8월 6일
댓글: Shannon 2024년 8월 8일
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