主要内容

linkDictionary

Link data dictionary to architecture model

描述

example

linkDictionary(model,字典文件)associates the specified Simulink®带有模型的数据字典。该模型不能具有本地定义的接口。

例子

全部收缩

Link a data dictionary to a model.

model = systemcomposer.createModel("newModel",真的);dictionary = systemcomposer.createDictionary("newDictionary.sldd");linkDiCTIONARY(模型,"newDictionary.sldd");保存(字典);保存(型号);

Input Arguments

全部收缩

Architecture model, specified as aSystemComposer.arch.model目的。

字典文件名称带有.slddextension, specified as a character vector or string. If a dictionary with this name does not exist, one will be created.

例子:“dict_name.sldd”

Data Types:char|string

More About

全部收缩

定义s

Term 定义 应用 More Information
建筑学

系统作曲家™建筑学represents a system of components and how they interface with each other structurally and behaviorally. You can represent specific architectures using alternate views.

Different types of architectures describe different aspects of systems:

  • 功能架构描述系统中的数据流。

  • Logical architecturedescribes the intended operation of a system.

  • Physical architecturedescribes the platform or hardware in a system.

Compose Architecture Visually
model

A System Composermodel是包含架构信息的文件,包括组件,端口,连接器,接口和行为。

Perform operations on a model:

  • 提取模型中包含的根级体系结构。

  • Apply profiles.

  • 链接接口数据词典。

  • Generate instances from model architecture.

A System Composer model is stored as an SLX file.

创建具有接口和需求链接的体系结构模型
component

Acomponentis a nontrivial, nearly independent, and replaceable part of a system that fulfills a clear function in the context of an architecture. A component defines an architectural element, such as a function, a system, hardware, software, or other conceptual entity. A component can also be a subsystem or subfunction.

Represented as a block, a component is a part of an architecture model that can be separated into reusable artifacts.

Components
port

Aport是代表与环境相互作用的组件或体系结构上的节点。一个端口允许从其他组件或系统的信息流进行。

有不同类型的端口:

  • 组件端口are interaction points on the component to other components.

  • 建筑端口are ports on the boundary of the system, whether the boundary is within a component or the overall architecture model.

端口
连接器

连接器是提供端口之间连接的线路。连接器描述信息如何在组件或体系结构之间流动。

A connector allows two components to interact without defining the nature of the interaction. Set an interface on a port to define how the components interact.

Connections

Term 定义 应用 More Information
interface data dictionary

Aninterface data dictionaryis a consolidated list of all the interfaces and value types in an architecture and where they are used.

Local interfaces on a System Composer model can be saved in an interface data dictionary using the接口编辑器. Interface dictionaries can be reused between models that need to use a given set of interfaces, elements, and value types. Data dictionaries are stored in separate SLDD files.

data interface

Adata interfacedefines the kind of information that flows through a port. The same interface can be assigned to multiple ports. A data interface can be composite, meaning that it can include data elements that describe the properties of an interface signal.

数据接口表示通过连接器共享的信息,并通过端口进入或退出组件。使用接口编辑器to create and manage data interfaces and data elements and store them in an interface data dictionary for reuse between models.

data element

Adata element描述接口的一部分,例如通信消息,计算或测量的参数或该接口的其他分解。

Data interfaces are decomposed into data elements:

  • Pins or wires in a connector or harness.

  • Messages transmitted across a bus.

  • Data structures shared between components.

value type

Avalue type可以用作端口接口来定义流过该端口并具有顶级类型,维度,单位,复杂性,最小值,最大和描述的原子片段。

您还可以将数据接口中数据元素的类型分配给值类型。使用该词典添加价值类型接口编辑器so that you can reuse the value types as interfaces or data elements.

创建价值类型作为接口
拥有的界面

An拥有的界面是特定端口本地局部且未在数据字典或模型词典中共享的接口。

Create an owned interface to represent a value type or data interface that is local to a port.

Define Owned Interfaces Local to Ports
adapter

Anadapterhelps connect two components with incompatible port interfaces by mapping between the two interfaces. An adapter can act as a unit delay or rate transition. You can also use an adapter for bus creation. Use the适配器块以实现适配器。

使用适配器,您可以在Interface Adapter对话:

  • Create and edit mappings between input and output interfaces.

  • Apply an interface conversionUnitdelay打破代数循环。

  • Apply an interface conversionRateTransition调和参考模型的不同样本时间率。

  • 当输出接口不确定时,您可以在Bus Creation Mode中使用输入接口对作者拥有的输出接口。

Version History

Introduced in R2019a