Why does the "arxml.importer" function produce different Simulink data types for ARXML elements with similar ARXML descriptions in MATLAB R2023a?
이전 댓글 표시
I'm attempting to create a model from my ARXML file using the "arxml.importer" function. Here's the code I'm using -
importerHandle = arxml.importer('<insert_file_name>.arxml');
componentNames = getComponentNames(importerHandle);
createComponentAsModel(swcImporter, char(componentNames), 'ModelPeriodicRunnablesAs','AtomicSubsystem')
I noticed that some of the imported variables in the workspace have different Simulink data types even though they have very similar descriptions in the ARXML file itself.
Here's an example -
In the ARXML screenshot below, "V1" and "V2" have almost the same descriptions. They only differ in name, UUID and data range values.
This makes it reasonable to assume that they will have the same Simulink Data Type upon being imported.

However, observing the MATLAB screenshot below indicates that "V1" and "V2" have different Simulink data types (former has the Simulink.NumericType while the latter has the Simulink.AliasType).

What is the reason for this behaviour?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!