RTW.AutosarInterface.runValidation fails
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!