Main Content

autosar.api.syncModel

Update Simulink to AUTOSAR mapping of model with Simulink modifications

Description

example

autosar.api.syncModel(model) updates the Simulink® to AUTOSAR mapping of model with modifications made to Simulink elements, such as data transfers, entry-point functions, and function callers.

This function is equivalent to using the Update button in the Code Mappings editor view of an AUTOSAR component model.

Examples

collapse all

When you create or modify an AUTOSAR model, Simulink to AUTOSAR mapping potentially is not current with the model content. For example, the Update button in this Code Mappings editor display indicates that Simulink elements need loading or updating.

This example opens and updates a model. After calling autosar.api.syncModel, the Simulink to AUTOSAR mapping reflects the current model content.

hModel = 'autosar_swc';
openExample(hModel);
autosar.api.syncModel(hModel)

Input Arguments

collapse all

Loaded or open model for which to update Simulink to AUTOSAR mapping with model changes, specified as a handle, character vector, or string scalar representing the model name.

Example: 'my_model'

Version History

Introduced in R2016a