How to assign Simulink parameters to custom SwAddrMethod in AUTOSAR model.

조회 수: 10 (최근 30일)
Mathias Metzler
Mathias Metzler 2022년 10월 20일
답변: Ayush Modi 2024년 1월 11일
My current model (root model with multiple model references) is converted to an AUTOSAR model with autosar.tlc target.
In the AUTOSAR dictionary AUTOSAR\SwAddrMethods, I have created custom sections in the SWAddrMethods, e.g. MyVar with section type CalibrationVariables.
Also in the AUTOSAR dictionary I can assign a parameter (defined as Simulink parameter in the linked data dictionary) in the tab AUTOSAR\AtomicComponents\root\Parameters to my custom SwAddrMethod MyVar.
However, while building the model, the AUTOSAR dictionary closes and the assignement from parameter to custom SwAddrMethod is gone after next time opening the AUTOSAR dictionary.
Are there any configurations that I am missing?

답변 (1개)

Ayush Modi
Ayush Modi 2024년 1월 11일
Hi Mathias,
As per my understanding, you are trying to map "Simulink" model elements to "Autosar" model.
Please refer to the following MathWorks documentation for a detailed step-by-step guide to acheive the same:
I hope this helps!

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by