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 Center および File ExchangeAUTOSAR Blockset についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by