Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

createComponentAsModel - Class: arxml.importer
Package: arxml

Create AUTOSAR atomic software component as Simulink model

Syntax

[modelH, success] = importerObj.createComponentAsModel(ComponentName)
[modelH, success] = importerObj.createComponentAsModel(ComponentName, Property1, Value1, Property2, Value2, ...)

Description

[modelH, success] = importerObj.createComponentAsModel(ComponentName) creates a Simulink model corresponding to the AUTOSAR atomic software component 'COMPONENT' described in the XML file imported by the arxml.importer object importerObj.

You can also specify optional property/value pairs when creating this Simulink model:

[modelH, success] = importerObj.createComponentAsModel(ComponentName, Property1, Value1, Property2, Value2, ...)

Inputs

ComponentNameAbsolute short name path of the atomic software component.
PropertyN, ValueNOptional property/value pairs. You can specify values for the following properties:
CreateSimulinkObject

'true' (default) or 'false'. If 'true', then the function creates the Simulink.AliasType and Simulink.NumericType corresponding to the AUTOSAR data types in the XML file.

NameConflictAction

'overwrite' (default) or 'makenameunique' or 'error'. Use this property to determine the action if a Simulink model with the same name as the component already exists.

AutoSave

'true' or 'false' (default). If 'true', then the function automatically saves the generated Simulink model.

Outputs

modelHModel handle.
successTrue if the function is successful. Otherwise, it is false.

Examples

importer_obj.createComponentAsModel('/package/autosar_component2')

See Also

Importing an AUTOSAR Software Component in the Real-Time Workshop Embedded Coder documentation

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS