Error using arxml.importer/updateModel Invalid or deleted object.
이전 댓글 표시
답변 (1개)
Manikanta Aditya
2024년 3월 4일
0 개 추천
Hi Tommaso,
From the error message it seems like there is an error realted to the 'updateModel' function in MATLAB's AUTOSAR package.
Here are few thing you could check to fix the issue:
1.) Object Validity: Ensure that the 'arxml.importer' object and the model you're trying to update are both valid and not deleted.
2.) Model Open: The model you're trying to update should be open.
3.) ARXML Changes: The XML files associated with the arxml.importer object must contain the AUTOSAR software component mapped by the model.
To know about the 'updateModel' function do check this reference: Update AUTOSAR model with ARXML changes - MATLAB updateModel (mathworks.com)
Try checking these possible things.
Thanks!
댓글 수: 4
Tommaso
2024년 3월 4일
Manikanta Aditya
2024년 3월 4일
Hello Tommaso,
- Check the ReadOnly Property: By default, the function imports AUTOSAR elements as read-only definitions, which prevents changes. To allow imported elements to be modified, set the 'ReadOnly' property to false.
- Update model with ARXML definitions from AUTOSAR element packages - MATLAB updateAUTOSARProperties (mathworks.com)
If these steps can't fix the issue, there might be issue with the model is what I think. So better reach out to MathWorks Technical Support team: https://www.mathworks.com/support/contact_us.html and share the '.slx' model file so that you can get guidance and help from the team.
Thanks!
Tommaso
2024년 3월 5일
Manikanta Aditya
2024년 3월 5일
I would suggest you to contact MathWorks technical support team for this issue.
카테고리
도움말 센터 및 File Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

