Transformation of Data and Interfaces

Get structured data definition in Simulink® Dictionary from Capella Data definition.

Workflow

The generic workflow is detailed in Getting started. Below are the specific options to choose in this workflow:

  1. Select in the Capella Project Explorer the Data Packages to export.
  2. Open the "Capella Export to Simulink®" tool.
  3. Select the transformation type "Data Packages sorted by engineering perspective".
  4. Generate the export file.
  5. Import the Data Packages in the project using the generated .mlcore file.

What are the data transformed?

This transformation computes an extended scope of transformation based on the Data Packages selected for this transformation.
Additionaly to all the elements contained in the selected Data Packages (the User scope), the transformation extends the scope to all the elements required to fully define all the elements of the User scope.

Let's consider the following example where Exchange Items are stored in the "ExchangeItems" data package, classes typing some elements of Exchange Items are stored in "Classes" data package and physical quantities and units used to define Exchange Items elements and properties of classes are stored in "Physics" data package.

Let's consider the User scope is the "ExchangeItems" data package only, then the extended scope is :

How are the Capella Data elements transformed?

Possible values for <ArcadiaPerspective> are:

Assumptions & Limitations

A few limitations are identified, as follows:

Cyclic reference

Depending on where the various data are stored in Data Packages and the dependencies between them, there might be cyclic references between data dictionaries. This is not supported and an error will occurat the model compile time.

Workaround: organize Data Packages content to avoid cyclic references.

Name conflict

Although Capella allows to have the same name for several elements, this can cause name conflict in MATLAB.

Workaround: do not name the same elements that will be stored in data dictionaries.