Borrar filtros
Borrar filtros

Error when importing the ARXML file

32 visualizaciones (últimos 30 días)
Jordi llovell
Jordi llovell el 19 de Sept. de 2017
Editada: Jyoti Sachdeva el 14 de Oct. de 2023
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
>>

Respuestas (2)

Daniel Casagrande
Daniel Casagrande el 21 de Dic. de 2022
I'm having the same issue... Someone got resolved it?
  1 comentario
Jyoti Sachdeva
Jyoti Sachdeva el 22 de Dic. de 2022
Editada: Jyoti Sachdeva el 14 de Oct. de 2023
@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

Iniciar sesión para comentar.


Jyoti Sachdeva
Jyoti Sachdeva el 14 de Oct. de 2023
Editada: Jyoti Sachdeva el 14 de Oct. de 2023
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)

Categorías

Más información sobre AUTOSAR Blockset en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by