RTW.AutosarInterface.runValidation fails
2 views (last 30 days)
Show older comments
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!
0 Comments
Answers (1)
Shuba Nandini
on 29 Aug 2023
Edited: Shuba Nandini
on 1 Sep 2023
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
0 Comments
See Also
Categories
Find more on AUTOSAR Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!