xcpA2L error: Error using numel Bad subscripting index.

4 Ansichten (letzte 30 Tage)
Shannon
Shannon am 6 Aug. 2024
Kommentiert: Shannon am 8 Aug. 2024
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.

Antworten (1)

Raghava S N
Raghava S N am 7 Aug. 2024
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 Kommentar
Shannon
Shannon am 8 Aug. 2024
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by