Main Content

createCalibrationComponentObjects

Create Simulink calibration objects from AUTOSAR ARXML calibration component

Description

createCalibrationComponentObjects(ar,ComponentName) imports calibration parameters from AUTOSAR calibration component ComponentName in the AUTOSAR XML file or files represented by arxml.importer object ar. The importer creates corresponding Simulink® data objects in the MATLAB® base workspace or a Simulink data dictionary. You can then assign the data objects to block parameters in your Simulink model.

example

sts = createCalibrationComponentObjects(___"DataDictionary"=DataDictionaryName,) specifies additional options for Simulink calibration data object creation with one or more Name,Value pair arguments.

example

Examples

collapse all

Import calibration parameters from an AUTOSAR calibration component and create corresponding Simulink data objects in the MATLAB base workspace.

ar = arxml.importer('mySWC.arxml')
createCalibrationComponentObjects(ar,'/ComponentType/MyCalibComp1')

Import calibration parameters from an AUTOSAR calibration component and create corresponding Simulink data objects in Simulink data dictionary ardata.sldd.

ar = arxml.importer('mySWC.arxml')
createCalibrationComponentObjects(ar,'/ComponentType/MyCalibComp1','DataDictionary','ardata.sldd')

Input Arguments

collapse all

AUTOSAR information previously imported from XML files, specified as an arxml.importer object handle.

Absolute short-name path of the calibration parameter component.

Example: '/MyComponent/MyCalibComp1'

Simulink data dictionary into which to import data objects corresponding to AUTOSAR data types in the XML file. If the specified dictionary does not already exist, the importer creates it. The model is then associated with that data dictionary.

Example: 'DataDictionary','ardata.sldd'

Output Arguments

collapse all

Variable that returns true if the import is successful. Otherwise, returns false.

Tips

If you enter the arxml.importer object function call without a terminating semicolon (;), the importer lists the AUTOSAR content of the specified XML file or files. The information includes paths to software components in the AUTOSAR package structure, which you can specify in calls to createComponentAsModel and createCalibrationComponentObjects.

Version History

Introduced in R2008b