模型配置参数:代码生成接口
TheCode Generation>Interfacecategory includes parameters for configuring the interface of the generated code. These parameters require a金宝app®CODER™执照。基于ERT的目标可用的其他参数需要嵌入式编码器®执照。
On the Configuration Parameters dialog box, the following configuration parameters are on theCode Generation>Interface窗格。
Parameter | 描述 |
---|---|
指定代码替换库代码生成器在为模型制作代码时使用的代码库。 |
|
指定生成实用程序功能,导出数据类型定义的位置以及使用自定义存储类的导出数据声明。 |
|
指定是否生成浮点数据和操作。 |
|
Specify whether to generate non-finite data and operations on non-finite data. |
|
指定是否生成复杂的数据和操作。 |
|
Specify whether to generate and maintain integer counters for absolute and elapsed time values. |
|
指定是否为使用连续时间的块生成代码。 |
|
指定是否为使用可变大小信号的模型生成代码。 |
|
选择生成的C或C ++代码接口的包装。 |
|
在模型违反生成多实体代码的要求时,选择显示的诊断的严重性级别。 |
|
Control how root-level model input and output are passed to the reusable |
|
Specify whether to log or monitor error status. |
|
Specify whether the code generator uses default |
|
指定是否将块参数结构生成 |
|
Specify whether to generate access methods for block parameters for the C++ model class. |
|
External I/O access | 指定是否为C ++模型类生成词级I/O信号的访问方法。 |
配置C ++类接口 | Customize the C++ class interface for your model code. |
Generate C API data interface code with a signals structure. |
|
使用参数调整结构生成C API数据接口代码。 |
|
使用状态结构生成C API数据接口代码。 |
|
Generate C API data interface code with a root-level I/O structure. |
|
为ASAP2数据接口生成代码。 |
|
为外部模式数据接口生成代码。 |
|
指定通信的运输协议。 |
|
Specify arguments to pass to an external mode interface MEX-file for communicating with executing targets. |
|
外部模式通信的控制存储器缓冲区。 |
|
Specify the memory buffer size for external mode communication. |
这些配置参数在高级参数.
Parameter | 描述 | |||
---|---|---|---|---|
为执行环境指定标准数学库。验证您的编译器是否支持您要使用的库;金宝app否则会发生编译时错误。
|
||||
指定是否为非插入的S函数生成代码。 |
||||
Specify a maximum word length, in bits, for which the code generation process generates system-defined multiword type definitions. |
||||
指定是否将系统定义或用户定义的类型定义用于生成代码中的多字数据类型。 |
||||
指定是否在R2012A之前创建的模型中生成与GRT目标的主要程序模块兼容的模型函数调用。 |
||||
控制生成的代码如何为模型数据分配内存。 |
||||
指定是否生成 |
||||
指定是否生成 |
||||
Specify whether to combine global block signals and global state data into one data structure in the generated code |
||||
指定垫子文件记录。 |
||||
Select the text to add to MAT-file variable names. |
||||
现有共享代码(Embedded Coder) |
Specify folder that contains existing shared code |
|||
Remove disable function(Embedded Coder) |
删除该实例的无法到达的(死编码)实例 |
|||
Remove reset function(Embedded Coder) |
删除该实例的无法到达的(死编码)实例 |
|||
Change the order of the fields in the generated structure for a lookup table object whose specification parameter is set to even spacing. |
||||
更改查找表对象的生成结构中的字段顺序,其规范参数设置为显式值。 |
||||
Specify whether to generate a destructor for the C++ model class. |
||||
指定是否为内部数据结构生成访问方法,例如块I/O,DWork向量,运行时模型,零交叉和连续状态,以及C ++模型类。 |
||||
指定是否生成内部数据结构,例如I/O,DWORD向量,运行时模型,零交叉和连续状态为 |
||||
Specify whether generated code uses the operator |
||||
Create custom Code Replacement libraries using code replacement tool. |
||||
指定是应用还是忽略自定义存储类。 |
||||
Specify allocation of memory buffers for test points. |
以下参数高级参数很少使用,没有其他文档。
Parameter | 描述 |
---|---|
生成haredconstants |
控制代码生成器是否使用共享常数和共享功能生成代码。默认为 |
推断型培训 |
与遗产代码的兼容性 |
targetlibsuffix -'' |
控制用于命名目标依赖库的后缀(例如, 不teThis parameter does not apply for model builds that use the toolchain approach, see库控制参数 |
目标发布 -'' |
控制预编译库的位置。如果未设置此参数,则代码生成器使用指定的位置 |
IsERTTarget |
指示当前选择的目标是否从ERT目标得出。 |
cppclassgencment |
指示目标是否支持生成和配置C ++类接口到建模代码的能力。金宝app |
ConcurrentExecutionCompliant |
Indicates whether the target supports concurrent execution |
USEToolChainInfocoument |
Indicate a custom target is toolchain-compliant. |
ModelStepFunctionPrototypeControlCompliant |
Indicates whether the target supports the ability to control the function prototypes of initialize and step functions that are generated for a Simulink model. |
ParmdlrefbuildCompliant |
指示在构建包含参考模型的模型时,是否为平行构建配置了模型。 |
|
Set in 默认为 |
Model Referencecommiant 角色向量- 离开 ,上 |
Set inselectCallback 为了指示目标是否支持模型参考。金宝app |
生成Fullheader |
生成完整的标头,包括时间戳记。 对于ERT目标,此参数在Code Generation > Templates窗格。 |
The following parameters are for MathWorks use only.
Parameter | 描述 |
---|---|
ExtModeTesting |
对于数学工作,仅使用。 |
ExtModeIntrfLevel |
对于数学工作,仅使用。 |
Extmodemexfile |
对于数学工作,仅使用。 |