Azzera filtri
Azzera filtri

Error when importing the ARXML file

32 visualizzazioni (ultimi 30 giorni)
Jordi llovell
Jordi llovell il 19 Set 2017
Modificato: Jyoti Sachdeva il 14 Ott 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
>>

Risposte (2)

Daniel Casagrande
Daniel Casagrande il 21 Dic 2022
I'm having the same issue... Someone got resolved it?
  1 Commento
Jyoti Sachdeva
Jyoti Sachdeva il 22 Dic 2022
Modificato: Jyoti Sachdeva il 14 Ott 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

Accedi per commentare.


Jyoti Sachdeva
Jyoti Sachdeva il 14 Ott 2023
Modificato: Jyoti Sachdeva il 14 Ott 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)

Categorie

Scopri di più su AUTOSAR Blockset in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by