필터 지우기
필터 지우기

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 CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by