How can I get and set the instance identifier of an AUTOSAR port programmatically using R2022b?

2 views (last 30 days)
I am using the general release of R2022b. In order to get the instance identifier of a required port in my AUTOSAR model, I executed the following code on the MATLAB Command Window:
arProps.get("MyModel/RequiredPort","InstanceIdentifier")
This results in an error message saying that the AUTOSAR element does not have the property "InstanceIdentifier". I get a similar error message when using the "set" API.
How do I access the instance identifier of the port programmatically?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Sep 2023
Starting in R2022b Update 6, the property "InstanceIdentifier" can be obtained using the "get" and "set" APIs.

More Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!