フィルターのクリア

Error when importing the ARXML file

32 ビュー (過去 30 日間)
Jordi llovell
Jordi llovell 2017 年 9 月 19 日
編集済み: Jyoti Sachdeva 2023 年 10 月 14 日
I have received a ARXML and when trying to import it the next error cames up, any idea what is the problem? I am using the version 2017a.
>> a=arxml.importer('SCM.arxml')
a =
The file "C:\SCM\SCM.arxml" contains: Error using Simulink.metamodel.arplatform.ArxmlImporter/read Assertion failed: Can't convert string '' to INT32_T at b:\matlab\src\m3i\kernel\primitive\valueobject\valueobjectimpl.cpp:33:
Error in autosar.mm.arxml.Importer/import
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
>>

回答 (2 件)

Daniel Casagrande
Daniel Casagrande 2022 年 12 月 21 日
I'm having the same issue... Someone got resolved it?
  1 件のコメント
Jyoti Sachdeva
Jyoti Sachdeva 2022 年 12 月 22 日
編集済み: Jyoti Sachdeva 2023 年 10 月 14 日
@Daniel Casagrande I got the same error, please see my answer below for the solution
This is the error I am facing : (Note: MDLFileName is the name of Autosar Control Model
K>> obj.p_updateModel(MDLFileName)
Error using p_update_read
Assertion failed: Can't convert string 'FALSE' to double at
b:\matlab\src\m3i\kernel\primitive\valueobject\valueobjectimpl.cpp:33:
Error in arxml.importer/p_component_updateModel

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


Jyoti Sachdeva
Jyoti Sachdeva 2023 年 10 月 14 日
編集済み: Jyoti Sachdeva 2023 年 10 月 14 日
This error (highlighted below) resolved by replacing <VF>FALSE</VF> with <VT>FALSE</VT> in ARXML file.
Error using p_update_read
Assertion failed: Can't convert string 'FALSE' to double at
b:\matlab\src\m3i\kernel\primitive\valueobject\valueobjectimpl.cpp:33:
Solution:
Replace
<VF>FALSE</VF>
with
<VT>FALSE</VT>
as the <VF> tag may only be used for numerical values, while <VT> can be used for textual values as well. This is outlined on page 485 of the following Autosar documentation:
NOTE:
This error can be captured in Autosar XML files from authoring tool so it doesn't end up in MATLAB. If you use dSPACE SystemDesk to validate your arxmls, refer to constr_1243: rule i.e. -> NumericalOrText must be set to either vf or vt. (Short name: R638 Numerical Or Text Definition)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by