帮助中心帮助中心
propertyName
创建目标对象
targetObject = target.create(targetType)
targetObject = target.create(targetType,Name,Value)
示例
targetObject = target.create(targetType) 创建并返回指定类的对象。
targetObject
targetType
targetObject = target.create(targetType,Name,Value) 使用一个或多个名称-值参量配置对象。
Name,Value
注意
您可以只通过一个步骤创建对象并为这些类指定属性:
target.BuildTool
target.Command
target.MakefileBuilder
target.TargetConnection
target.Timer
target.Toolchain
有关使用此函数的工作流示例,请参阅:
为新设备指定硬件实现
通过修改现有实现来创建硬件实现
通过重用现有实现来创建硬件实现
全部折叠
指定对象的类。例如,指定:
'Processor' 创建一个 target.Processor 对象。
'Processor'
target.Processor
'LanguageImplementation' 创建一个 target.LanguageImplementation 对象。
'LanguageImplementation'
target.LanguageImplementation
'Alias' 创建一个 target.Alias 对象。
'Alias'
target.Alias
有关受支持类型的完整列表,请参阅 target。
target
示例: 'Processor'
将可选的参量对组指定为 Name1=Value1,...,NameN=ValueN,其中 Name 是参量名称,Value 是对应的值。名称-值参量必须出现在其他参量后,但参量对组的顺序无关紧要。
Name1=Value1,...,NameN=ValueN
Name
Value
在 R2021a 之前,使用逗号分隔每个名称和值,并用引号将 Name 引起来。
示例: myProc = target.create('Processor', 'Name', 'myProcessor', 'Manufacturer', 'myProcessorManufacturer');
myProc = target.create('Processor', 'Name', 'myProcessor', 'Manufacturer', 'myProcessorManufacturer');
Copy
通过从现有目标对象复制值来创建一个目标对象。例如:
myLangImp = target.create('LanguageImplementation', ... 'Name', 'myLanguageImplementation', ... 'Copy', 'ARM Compatible-ARM Cortex');
IDPrefix
向由 target.create 生成的 ID 添加前缀。
target.create
创建属性设置为指定值的目标对象。
创建并返回的对象。例如,对象的情况如下:
如果 targetType 为 'Processor',则为 target.Processor 对象
如果 targetType 为 'LanguageImplementation',则为 target.LanguageImplementation 对象
如果 targetType 为 'Alias',则为 target.Alias 对象
在 R2019a 中推出
target.add | target.get | target.remove
target.add
target.get
target.remove
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office