How do I avoid Basic Software enums redefinition between R2023a and R2024b?

When I open a model with some Basic Software callers blocks (such as "DiagnosticMonitorCaller" or "NvMServiceCaller") some enumerations linked to these blocks that I have previously defined are being overwritten.
How can I avoid that?

 采纳的回答

In R2023a, the AUTOSAR Blockset implemented support for Basic Software AUTOSAR schema versions. Part of this support was the definition of the Basic Software enumeration type. 
This extended support can create some discrepancies with existing enumerations already defined and used in Basic Software blocks. The double definition of these enumerations can cause some integration issues. 
AUTOSAR Blockset R2025a started to support custom enumerations for Basic Software blocks. This had the effect of lifting these possible discrepancies. 
If you are using a release between R2023a and R2024b and are experiencing issues with the enumerations redefinition, you can use the following P coded solution. This will prevent enums from being defined automatically, avoiding these discrepancies. This will notably require you to directly manage the definitions of such enums as part of your workflow.
To do so:
Download the attached ZIP
Extract it and place the +autosar folder and its contents on your MATLAB Path

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 AUTOSAR Blockset 的更多信息

产品

版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by