RTW.Autosa​rInterface​.runValida​tion fails

조회 수: 3 (최근 30일)
Oleg Plachkov
Oleg Plachkov 2023년 5월 9일
편집: Shuba Nandini 2023년 9월 1일
I'm working on a model developed with MATLAB R2013b. I need to generate code from it, but first it needs to pass Autosar validation.
Here's what's happening in the build script:
builder = RTW.AutosarInterface('model');
builder.attachToModel('model');
builder.runValidation
On R2013b runValidation would crash MATLAB (the whole program). However, after trying it on R2016b it doesn't crash and I get more information:
>> [b, c] = builder.runValidation
b =
logical
0
c =
The first input to get_param must be of type 'double', 'char' or 'cell'.
I have no idea what the message is supposed to mean, because I can't see what runValidation does. I don't know what kind of parameter has gotten these mismatched types. A long time ago the model was converted to R2019a, modified and then downgraded to R2013b. Could that be the reason?
Any help would be much appreciated, but before finishing I must specify what I can and can't do:
I'm not allowed to:
  • Share the model (not allowed to do that)
  • Upgrade to a modern MATLAB version
  • Use a version of the model before the conversion to R2019a (too many changes have been introduced)
Many thanks in advance for your help!

답변 (1개)

Shuba Nandini
Shuba Nandini 2023년 8월 29일
편집: Shuba Nandini 2023년 9월 1일
Hello,
It is my understanding that you want to validate the AUTOSAR model using RTW.AutosarInterface class.
Unfortunately, R2018a and further versions ends support for models that use the 'RTW.AutosarInterface' based mapping.
These models are no longer automatically converted to use the new AUTOSAR properties and mapping approach. AUTOSAR models that use ' RTW.AutosarInterface' based mapping can permanently migrate to using the AUTOSAR property and map functions listed in AUTOSAR Software Components and AUTOSAR Programmatic Interfaces.
Error might occur in R2016b due to upgrading or downgrading the MATLAB versions, which can lead the models to lose their properties.
I hope this helps!
Regards,
Shuba Nandini

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by