Main Content

Types Editor

Create custom data types

Since R2024a

Description

The Types Editor allows you to define custom data types. You can then use the types created in the Types Editor to define data types of tokens that flow through pins of an action node.

The kinds of data types that you can define in the Types Editor include:

  • Composite Type — A composite type is equivalent to a bus that contains fields of different values and data types.

  • Value Type — A value type is a data type assigned to a single field value.

Types Editor

Open the Types Editor

  • Create an activity diagram.

  • In the Activity Diagram toolstrip, in the Modeling tab, select Types Editor.

Parameters

expand all

Add a new composite data type by clicking Add composite type or select one of these options from the drop-down list.

  • Composite Type — A composite type is equivalent to a bus that contains fields of different values and data types.

  • Value Type — A value type is a data type assigned to a single field value.

Add a new bus element to the selected composite type by clicking Add element to selected composite type.

Delete the selected type or element.

Import interfaces from these locations:

  • Base Workspace

  • MAT-file

Save types in the current data dictionary or attach an existing data dictionary to your model. Select a specific option from the list:

  • Save dictionary

  • Save to new dictionary

  • Link existing dictionary

Manage data types and data dictionary references in the Architectural Data Editor.

Choose a profile XML file to import into the currently selected data dictionary. You can also remove an existing profile from the selected data dictionary.

Show and hide columns on the Types Editor by checking the corresponding boxes:

  • Type

  • Dimensions

  • Units

  • Complexity

  • Minimum

  • Maximum

  • Description

Choose a view for the Types Editor to display interfaces:

  • Dictionary View — Show types used across the model that can be reused for multiple tokens.

  • Pin View — Show types held by the selected input or output pin of an action node.

More About

expand all

Version History

Introduced in R2024a