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 Center および File ExchangeInstrument 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