Why does the "arxml.importer" function produce different Simulink data types for ARXML elements with similar ARXML descriptions in MATLAB R2023a?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur AUTOSAR Blockset dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!