setName
设置值类型,接口或元素的名称
Description
Examples
设置数据元素的名称
创建一个名称的模型'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');%为数据元素设置新名称
输入参数
界面
-接口,元素或值类型
数据接口对象|数据元素对象|physical interface object|物理元素对象|值类型object
姓名
-姓名
角色向量|细绳
姓名of interface, element, or value type, specified as a character vector or string. This name must be a valid MATLAB®identifier.
Example:'newName'
数据类型:char
|细绳
更多关于
定义
学期 | 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:
|
学期 | 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 |
Use a physical interface to bundle physical elements to describe a physical model using at least one physical domain. | 在端口上指定物理接口 |
物理元素 | 物理元素描述了物理接口的分解。物理元素等同于 |
Define theType of a physical element as a physical domain to enable use of that domain in a physical model. |
使用SIMSCAPE描述组件行为 |
也可以看看
MATLABCommand
您单击了与此MATLAB命令相对应的链接:
通过在MATLAB命令窗口中输入该命令。Web浏览器不支持MATLAB命令。金宝app
Select a Web Site
选择一个网站以获取可用的翻译内容,并查看本地事件和优惠。根据您的位置,我们建议您选择:。
You can also select a web site from the following list:
如何获得最佳网站性能
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
Americas
- América Latina(Español)
- Canada(English)
- United States(English)