Effacer les filtres
Effacer les filtres

Error when importing the ARXML file

29 vues (au cours des 30 derniers jours)
Jordi llovell
Jordi llovell le 19 Sep 2017
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
>>

Réponses (2)

Daniel Casagrande
Daniel Casagrande le 21 Déc 2022
I'm having the same issue... Someone got resolved it?
  1 commentaire
Jyoti Sachdeva
Jyoti Sachdeva le 22 Déc 2022
Modifié(e) : Jyoti Sachdeva le 14 Oct 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

Connectez-vous pour commenter.


Jyoti Sachdeva
Jyoti Sachdeva le 14 Oct 2023
Modifié(e) : Jyoti Sachdeva le 14 Oct 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)

Catégories

En savoir plus sur AUTOSAR Blockset dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by