Main Content

setName

设置值类型,接口或元素的名称

    Description

    例子

    setName(界面,,,,姓名sets the name for the designated value type, interface, or element.

    Examples

    collapse all

    创建一个名称的模型'ArchModel'

    modelName ='ArchModel'; arch = systemcomposer.createModel(modelName,true);%创建模型

    Add a data interface, then create an data element with the name'X'

    interface = arch.InterfaceDictionary.addInterface('界面');% Add data interfaceelem = interface.addElement('X');%创建数据元素

    Set a new name for the data element as'newName'

    setName(elem,'newName');%为数据元素设置新名称

    输入参数

    collapse all

    姓名of interface, element, or value type, specified as a character vector or string. This name must be a valid MATLAB®identifier.

    Example:'newName'

    数据类型:char|细绳

    更多关于

    collapse all

    定义

    学期 Definition Application 更多信息
    接口数据字典 接口数据字典是架构中所有接口和值类型的合并列表以及使用它们的位置。

    系统Composer™模型上的本地接口可以使用接口编辑器保存在接口数据字典中。

    可以在需要使用给定的一组接口,元素和值类型的模型之间重复接口字典。数据词典存储在单独的SLDD文件中。

    数据接口 数据接口定义了流过端口的信息的种类。相同的接口可以分配给多个端口。数据接口可以复合,这意味着它可以包含描述接口信号属性的数据元素。 Data interfaces represent the information that is shared through a connector and enters or exits a component through a port. Use the Interface Editor to create and manage data interfaces and data elements and store them in an interface data dictionary for reuse between models. Create an Architecture Model with Interfaces and Requirement Links
    数据元素 数据元素描述了界面的一部分,例如通信消息,计算或测量的参数或该接口的其他分解。

    数据接口分解为数据元素:

    • 连接器或线束中的销钉或电线。

    • 跨公共汽车传输的消息。

    • 组件之间共享的数据结构。

    值类型 一个值类型可以用作难觅踪迹t interface to define the atomic piece of data that flows through that port and has a top-level type, dimension, unit, complexity, minimum, maximum, and description. 您还可以将数据接口中数据元素的类型分配给值类型。使用接口编辑器向数据词典添加值类型,以便您可以将值类型重用为接口或数据元素。 Create Value Types as Interfaces
    owned interface 拥有的接口是本地定义的接口,该接口是特定端口局部的,并且在数据字典或模型词典中未共享。 创建一个自有的接口来表示端口本地的值类型或数据接口。 定义端口本地自有的接口
    适配器 适配器通过在两个接口之间映射两个组件将两个组件与不兼容的端口接口连接。适配器也可以充当单位延迟或费率转换。使用Adapterblock to implement an adapter.

    With an adapter, you can perform functions on the Interface Adapter dialog:

    • 在输入和输出接口之间创建和编辑映射。

    • 应用接口转换UnitDelayto break an algebraic loop.

    • 应用接口转换比率to reconcile different sample time rates for reference models.

    学期 Definition Application 更多信息
    物理子系统 A physical subsystem is a Simulink®带有SIMSCAPE™连接的子系统。 A physical subsystem with Simscape connections uses a physical network approach suited for simulating systems with real physical components and represents a mathematical model. 使用SIMSCAPE描述组件行为
    物理端口 A physical port represents a Simscape physical modeling connector port called a连接端口(Simscape) 使用物理端口在体系结构模型中连接组件或在Simulink子系统中启用物理系统。金宝app 在组件上定义物理端口
    物理连接器

    物理连接器可以代表特定物理域的非方向保护连接。连接器也可以代表物理信号。

    Use physical connectors to connect physical components that represent features of a system to simulate mathematically. DC电机的Simscape行为的体系结构模型
    physical interface

    A physical interface defines the kind of information that flows through a physical port. The same interface can be assigned to multiple ports. A physical interface is a composite interface equivalent to a金宝appsimulink.connectionbusobject that specifies at least one金宝appsimulink.connectionElementobject.

    Use a physical interface to bundle physical elements to describe a physical model using at least one physical domain. 在端口上指定物理接口
    物理元素

    物理元素描述了物理接口的分解。物理元素等同于金宝appsimulink.connectionElementobject.

    Define theTypeof a physical element as a physical domain to enable use of that domain in a physical model. 使用SIMSCAPE描述组件行为

    在R2019a中引入