How to run createComponentAsModel on arxml file with InternalTriggeringPoint?

3 views (last 30 days)
I'm trying to create a skeleton model from the arxml file.
The following error occurs when creating a model using the 'createComponentAsModel' function.
here is command
ar = arxml.importer('aa.arxml');
createComponentAsModel(ar,'/ComponentTypes/xx','ModelPeriodicRunnablesAs','FunctionCallSubsystem');
here is error message.
Unable to import software component '/ComponentTypes/xx' because it contains InternalTriggeringPoint(s):
If I include InternalTriggeringPoint, what options should I use to run the createComponentAsModel?

Answers (1)

Adithya
Adithya on 24 May 2023
If you encounter the error message "Unable to import software component '/ComponentTypes/xx' because it contains InternalTriggeringPoint(s)," it means that the software component you are trying to import contains internal triggering points, which are not supported by the 'createComponentAsModel' function.
The 'createComponentAsModel' function is used to create a skeleton model from AUTOSAR software component descriptions, but it does not support internal triggering points. Internal triggering points are typically used in complex AUTOSAR systems for event-based communication and timing constraints.
To resolve this issue, you have a few options:
  • Exclude InternalTriggeringPoints: If the internal triggering points are not critical for your modeling purposes, you can exclude them from the import process. Modify your import command as follows: c
createComponentAsModel(ar, '/ComponentTypes/xx', 'ModelPeriodicRunnablesAs', 'FunctionCallSubsystem', 'ExcludeInternalTriggeringPoints', true);
  • This will skip the import of internal triggering points and allow you to create the model without them.
  • Handle InternalTriggeringPoints manually: If the internal triggering points are essential for your modeling requirements, you will need to handle them manually. The 'createComponentAsModel' function does not directly support internal triggering points, so you would need to create the necessary blocks and connections manually in the generated model.You can still use the 'createComponentAsModel' function to create the initial skeleton model without internal triggering points and then modify the generated model to include the required internal triggering points and their associated functionality.
  • Use a different approach or tool: If your modeling requirements heavily rely on internal triggering points, you might need to explore other modeling approaches or tools that provide better support for AUTOSAR internal triggering points. Consider using specialized AUTOSAR modeling tools or frameworks that offer more comprehensive features for working with AUTOSAR systems.
Remember to choose the option that aligns with your specific modeling needs and the capabilities of the tools at your disposal.

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!