MATLAB: Is it possible to get list of Autosar Per-Instance-Memory elements through Simulink Model from command line interface

artypedperinstancememoryautosarAUTOSAR Blocksetautosar support packagecompumethodsEmbedded CoderMATLABper-instance-memorypimsimulink

Hi,
I want to list down the AR-elements with PIM behavior, available in model generated by ARXML importer. I have to do it for set of components, so I am looking for command line interface for the same.
I have tried below commands
arProps = autosar.api.getAUTOSARProperties(bdroot);
swcName = get(arProps,aswcPaths{1},'Behavior');
swcName = get(arProps,aswcPaths{1},'Behavior');
PIMList=get(arProps,swcName,'PIM');
The PIMList is empty. I have tried other properties like 'Events', 'IRV' those are working correctly. But 'PIM' is not working as expected.
Let me know if I am missing anything in above commands.
Thanks, Shiva

Best Answer

I have got the list using xml functions.