| Real-Time Workshop® Embedded Coder™ | ![]() |
[modelH, success] = importerObj.createComponentAsModel(ComponentName)
[modelH, success] = importerObj.createComponentAsModel(ComponentName,
Property1, Value1, Property2, Value2...)
createComponentAsModel is a method of the class arxml.importer that creates an AUTOSAR atomic software component as a Simulink model.
[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. ComponentName is the absolute Short-Name path of the atomic software component .
[modelH, success] = importerObj.createComponentAsModel(ComponentName, Property1, Value1, Property2, Value2...) creates the Simulink model and can specify the following parameter/value pairs:
True or false (default is true). If it is true, this function creates the Simulink.AliasType and Simulink.NumericType corresponding to the AUTOSAR data types in the XML file.
'overwrite' or 'makenameunique' or 'error' (default is 'overwrite'). Use this parameter to control the action to take when a Simulink model with the same name as the component already exists.
True or false (default is false). If it is true, this function automatically saves the generated Simulink model.
Outputs:
Model handle.
True if this function is successful. Otherwise, it is false.
importer_obj.createComponentAsModel('/package/autosar_component2')createComponentAsSubsystem;getComponentNames; getDependencies; setDependencies; setFile
![]() | createCalibrationComponentObjects | createComponentAsSubsystem | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |