Is it possible to retrieve the value of Internal Data SwAddrMethods from Code mapping interface?
Show older comments

Need help in retrieving this value using MATLAB script from AUTOSAR code mapping, is there any valid APIs for the same.
Answers (1)
Samar
on 8 May 2026 at 9:58
0 votes
Hi Ankitha,
No, there is no supported MATLAB API to programmatically retrieve the Internal Data SwAddrMethod value from the AUTOSAR Code Mapping interface.
- The AUTOSAR APIs (autosar.api) allow setting/configuring SwAddrMethod for mappable data elements, but internal data SwAddrMethod is not exposed for query through the code mapping API.
- If the value shows as <None> in Code Mappings, it means no explicit SwAddrMethod has been assigned, and this state cannot be queried via MATLAB script today.
You can use the MathWorks Documentation references
- AUTOSAR data properties support (what can be configured, not queried):https://www.mathworks.com/help/autosar/ug/configure-autosar-data-for-measurement-and-calibration.html
- AUTOSAR mapping and Code Mappings editor overview (no API listed for reading internal SwAddrMethod):https://www.mathworks.com/help/autosar/ug/map-model-elements-using-simulink-autosar-mapping-explorer.html
Hope this helps!
Thanks,
Samar
Categories
Find more on Debugging and Improving Code 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!