Main Content

autosar.api.getAUTOSARProperties

Configure AUTOSAR software component elements and properties

Description

In an AUTOSAR software component model, use AUTOSAR property functions to configure AUTOSAR elements from an AUTOSAR component perspective. You can add AUTOSAR elements, find elements, get and set properties of elements, delete elements, and define ARXML packaging of elements.

Creation

Description

example

arProps = autosar.api.getAUTOSARProperties(model) creates object arProps, which represents AUTOSAR properties information for model. The specified model must be open.

Input Arguments

expand all

Model for which to create AUTOSAR properties object, specified as a handle, character vector, or string scalar representing the model name.

Example: 'my_model'

Object Functions

addAdd property to AUTOSAR element
addPackageableElementAdd element to AUTOSAR package in model
createEnumerationCreate Simulink enumeration data type definition from imported AUTOSAR data elements
createManifestCreate manifest file for AUTOSAR adaptive model
createNumericTypeCreate Simulink numeric data type definition from imported AUTOSAR data elements
deleteDelete AUTOSAR element
deleteUnmappedComponentsDelete unmapped AUTOSAR components from model
findFind AUTOSAR elements
getGet property of AUTOSAR element
setSet property of AUTOSAR element

Examples

collapse all

Call the autosar.api.getAUTOSARProperties function to create object arProps, which represents AUTOSAR properties information for model autosar_swc_slfcns. Use the returned object to set the IsService property for client-server interface CSIf to true (1), indicating that the port interface is used for AUTOSAR services.

hModel = 'autosar_swc_slfcns';
openExample(hModel);
arProps = autosar.api.getAUTOSARProperties(hModel);
set(arProps,'CSIf','IsService',true);
isService = get(arProps,'CSIf','IsService')
isService =
  logical
   1

Version History

Introduced in R2013b