createCalibrationComponentObjects - Create Simulink calibration objects from AUTOSAR calibration component

Syntax

importerObj.createCalibrationComponentObjects(componentName)
[success] = createCalibrationComponentObjects(importerObj. componentName, CreateSimulinkObject, 'true')
[success] = createCalibrationComponentObjects(importerObj, componentName, Property1, Value1)

Description

createCalibrationComponentObjects is a method of the class arxml.importer.

importerObj.createCalibrationComponentObjects(componentName) creates Simulink calibration objects from an AUTOSAR calibration component. This imports all your parameters into the Workspace and you can then assign them to block parameters in your Simulink model.

componentName is the absolute short name path of the calibration parameter component.

[success] = createCalibrationComponentObjects(importerObj. componentName, CreateSimulinkObject, 'true') creates the Simulink.AliasType and Simulink.NumericType corresponding to the AUTOSAR data types described in the XML file imported by the arxml.importer object importerObj.

[success] = createCalibrationComponentObjects(importerObj, componentName, Property1, Value1) can specify the following parameter/value pair:

CreateSimulinkObject

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.

Outputs:

success

True if this function is successful. Otherwise, it is false.

Example

importer_obj.createCalibrationComponentObjects('/package/autosar_component2')

See Also

createComponentAsSubsystem;createComponentAsModel; getCalibrationComponentNames; getDependencies; setDependencies; setFile

  


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