How can I get and set the instance identifier of an AUTOSAR port programmatically using R2022b?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 13 Sep 2023
Answered: MathWorks Support Team
on 15 Sep 2023
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
on 13 Sep 2023
Starting in R2022b Update 6, the property "InstanceIdentifier" can be obtained using the "get" and "set" APIs.
0 Comments
More Answers (0)
See Also
Categories
Find more on AUTOSAR Blockset 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!