AUTOSAR from arxml to model - errors using importerobj

6 ビュー (過去 30 日間)
Kevin Gan
Kevin Gan 2017 年 7 月 25 日
回答済み: Amit 2019 年 8 月 1 日
Dear experts, I met below error messages while using importerobj trying to parse the arxml file and then to create the model from it, can you advice?
Error using autosar.mm.arxml.Importer/import Elements "/Application_SWC/aaps/Init_InitAAPS_aaps_irv" and "/Application_SWC/aaps/IB_aaps/IB_aaps/InitAAPS_aaps_irv" in file C:/Appl_BRI.arxml:414 have the same UUID "383ef5dd-46b5-11e3-aaf8-2c27d728cce0". Each of these elements should have its own unique UUID.
Error in p_update_read
Error in p_getcomponentnames
Error in arxml.importer/getApplicationComponentNames (line 16) compList = p_getcomponentnames(this, 'asc');
Error in arxml.importer/display

採用された回答

Daniele Defilippi
Daniele Defilippi 2017 年 8 月 2 日
The problem is probably caused by the AUTOSAR tool you are using to generate the ARXML. You should not have duplicate UUID inside the ARXML file. Try manually changing all the duplicated UUID and run the script again. If this solves the import issue you need to re-generate the ARXML with the AUTOSAR tool. Try deleting the internal behavior configuration.
  1 件のコメント
Kevin Gan
Kevin Gan 2017 年 8 月 24 日
Thanks very much, I took your suggestion and manually changed the duplicated UUID, now I can parse the arxml file successfully. But I now meet another issue, when I tried to create model from arxml file, I can only get a model showing the sender and receiver ports, no internal diagram, do you know what is the reason?
Thanks again for your kind answer/help and your precious time!

サインインしてコメントする。

その他の回答 (1 件)

Amit
Amit 2019 年 8 月 1 日
ARXML file generally contains the information of AUTOSAR compliance interfaces and data definintions etc, the inside functionality you have to develope based on the requirements and connect the interfaces correctly.

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

Community Treasure Hunt

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

Start Hunting!